Skip to content

Commit

Permalink
Moved docker pull and changed nginx restart to reload
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrousseau committed Dec 21, 2020
1 parent 96d8a77 commit d059f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "Stop octopus-local."
systemctl is-active --quiet octopus-local && systemctl stop octopus-local

docker-compose pull
docker-compose down

if [ ! -d "mssql" ]; then
Expand All @@ -19,7 +20,6 @@ if [ ! -d "sqlserver" ]; then
echo "sqlserver/ configured."
fi

docker-compose pull
docker-compose up -d

mv octopus-local.service /etc/systemd/system
Expand All @@ -35,8 +35,8 @@ systemctl is-enabled --quiet octopus-local || systemctl enable octopus-local
systemctl start octopus-local
echo "Reload systemctl daemon."
systemctl daemon-reload
echo "Restart nginx."
systemctl restart nginx
echo "Reload nginx."
systemctl reload nginx

write_highlight "[octopus.local](https://octopus.local)"

Expand Down

0 comments on commit d059f24

Please sign in to comment.