The previous BACKEND_DIR_V2=/opt/social-reporting-v2 hardcode failed on the production host because we did an in-place cutover: V1 and V2 share a single checkout at /opt/social-reporting. ./v2/deploy/deploy-v2.sh exited immediately with "V2 dir not found". Both deploy-v2.sh and rollback-to-v1.sh now derive their repo root from the script's own location, so they work whatever the parent directory is named. setup-v2.sh is left alone — it's the first-time provisioner and creating /opt/social-reporting-v2 from scratch is still a fine default for greenfield installs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apache-social-reports-v2.conf | ||
| cutover-in-place.sh | ||
| deploy-v2.sh | ||
| rollback-to-v1.sh | ||
| setup-v2.sh | ||