- deploy.sh dev|prod with --dry-run, auto-rollback if /health fails
within 60s; checkpoint saved to .last_deploy_rollback before reset
- deploy/rollback.sh last|<sha> with the same Docker compose dance
- deploy/health-check.sh — curl wrapper for monitoring/oncall
- deploy/apache-{dev,prod}.conf — Location blocks proxying /hm-aiqc/
to gunicorn on 127.0.0.1:5050 with X-Script-Name set so wsgi.py's
ReverseProxied middleware emits prefixed URLs
- deploy/.env.{dev,prod}.example — starter envs with Azure SSO config
10 lines
284 B
Bash
Executable file
10 lines
284 B
Bash
Executable file
#!/bin/bash
|
|
# Quick "is the app alive?" check. Prints status and exits 0 (healthy) or 1 (not).
|
|
HEALTH_URL=${HEALTH_URL:-http://127.0.0.1:5050/health}
|
|
|
|
if output=$(curl -sf "$HEALTH_URL" 2>&1); then
|
|
echo "OK $output"
|
|
exit 0
|
|
fi
|
|
echo "DOWN no response from $HEALTH_URL"
|
|
exit 1
|