re-exec deploy.sh after git pull to pick up changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Drop connections with unknown or missing Host headers
|
||||
# Drop connections with unknown/missing Host headers
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
@@ -50,6 +50,12 @@ APP="${CMD#deploy-}"
|
||||
cd /opt/hantim
|
||||
git pull
|
||||
|
||||
# Re-exec so the running script reflects any changes just pulled
|
||||
if [ -z "${DEPLOY_REEXEC:-}" ]; then
|
||||
export DEPLOY_REEXEC=1
|
||||
exec /opt/hantim/scripts/deploy.sh
|
||||
fi
|
||||
|
||||
# Generate .env from bws if this service declares .env.keys
|
||||
if [ -f "docker/$APP/.env.keys" ] && [ -f /etc/bws-token ]; then
|
||||
export BWS_ACCESS_TOKEN
|
||||
|
||||
Reference in New Issue
Block a user