Skip to content

Commit

Permalink
Make deployment more robust (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w authored Apr 26, 2020
1 parent 563173e commit eb22cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ x-shared-secret-environment:
- ../secrets/sendgrid.env
volumes:
- /tmp:/tmp
restart: always

services:

Expand Down
3 changes: 2 additions & 1 deletion docker/setup/vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

if [[ "$1" != "install" ]]; then
cd /home/opwen/opwen-cloudserver || exit 99
git pull || exit 1
git fetch origin --prune || exit 1
git reset --hard origin/master || exit 1
cd - || exit 99
docker-compose -f /home/opwen/opwen-cloudserver/docker/docker-compose.prod.yml pull || exit 2
docker-compose -f /home/opwen/opwen-cloudserver/docker/docker-compose.prod.yml up -d || exit 3
Expand Down

0 comments on commit eb22cf5

Please sign in to comment.