We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4bffef5 + c0ae79c commit dcd014bCopy full SHA for dcd014b
.github/workflows/deploy.yml
@@ -43,6 +43,7 @@ jobs:
43
username: ${{ secrets.VPS_USER }}
44
key: ${{ secrets.VPS_SSH_KEY }}
45
script: |
46
+ set -e
47
mkdir -p /home/${{ secrets.VPS_USER }}/chat
48
cd /home/${{ secrets.VPS_USER }}/chat
49
@@ -53,7 +54,8 @@ jobs:
53
54
git sparse-checkout set /docker-compose.yml /docker-compose.production.yml /frontend/nginx.production.conf
55
git checkout main
56
else
- git pull origin main
57
+ git fetch origin main
58
+ git reset --hard origin/main
59
fi
60
61
# Deploy prebuilt images
docker-compose.production.yml
@@ -7,6 +7,8 @@ services:
7
8
backend:
9
image: guessst/chat-backend:latest
10
+ environment:
11
+ ASPNETCORE_URLS: "http://*:2001"
12
build:
13
context: .
14
ports: !reset []
0 commit comments