re-exec deploy.sh after git pull to pick up changes
Deploy nginx / deploy (push) Successful in 3s
Deploy nginx / test (push) Successful in 7s

This commit is contained in:
2026-03-20 17:01:36 -04:00
parent b2bb8fa5eb
commit c8c79a542a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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