Skip to content

Commit dcd014b

Browse files
authored
Merge pull request #4 from Guessst/develop
Fixing prod
2 parents 4bffef5 + c0ae79c commit dcd014b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
username: ${{ secrets.VPS_USER }}
4444
key: ${{ secrets.VPS_SSH_KEY }}
4545
script: |
46+
set -e
4647
mkdir -p /home/${{ secrets.VPS_USER }}/chat
4748
cd /home/${{ secrets.VPS_USER }}/chat
4849
@@ -53,7 +54,8 @@ jobs:
5354
git sparse-checkout set /docker-compose.yml /docker-compose.production.yml /frontend/nginx.production.conf
5455
git checkout main
5556
else
56-
git pull origin main
57+
git fetch origin main
58+
git reset --hard origin/main
5759
fi
5860
5961
# Deploy prebuilt images

docker-compose.production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ services:
77

88
backend:
99
image: guessst/chat-backend:latest
10+
environment:
11+
ASPNETCORE_URLS: "http://*:2001"
1012
build:
1113
context: .
1214
ports: !reset []

0 commit comments

Comments
 (0)