PR AB: complete Phoenix deployment scaffolding (add 3 files referenced by main 4a1f69a)
#32
Reference in New Issue
Block a user
Delete Branch "devin/1776918348-pr-ab-complete-phoenix-scaffolding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
maincommit4a1f69a("deploy: make Phoenix redeploys archive-safe") adopted the Phoenix deployment scaffolding that was being iterated on in the now-closed PR #31, but three files thatmain's owninstall.sh, systemd units,deploy-currencicombo-8604.sh, andREADME.mdall reference did not make it in. This PR adds exactly those three files, unchanged from the PR #31 branch, somainis internally consistent and actually bootable on CT 8604.What main references but does not have
scripts/deployment/webapp-nginx.confsystemd/currencicombo-webapp.serviceline 13 (ExecStart=/usr/sbin/nginx -c /etc/currencicombo/webapp-nginx.conf ...);install.shline 36 (NGINX_FILE="${ETC_DIR}/webapp-nginx.conf") + line 232 (install -m 0644 "${SCRIPT_DIR}/webapp-nginx.conf" "${NGINX_FILE}")nginx: [emerg] open() "/etc/currencicombo/webapp-nginx.conf" failedscripts/deployment/systemd/currencicombo-orchestrator.servicedeploy-currencicombo-8604.shline 40 (: "${ORCHESTRATOR_UNIT:=currencicombo-orchestrator.service}") + lines 101/104 (systemctl stop/start);install.shline 238 (install -m 0644of that path) + line 248 (systemctl enable)install.shfails at the install step; deploy script fails atsystemctl stop currencicombo-orchestrator.servicewithUnit ... not loadedscripts/deployment/install-prune-cron.shREADME.mdstep 4 (bash /var/lib/currencicombo/repo/scripts/deployment/install-prune-cron.sh); README backup-retention sectionNo such file or directoryProvenance
All three files are byte-identical copies of the same three files from the closed PR #31 branch
devin/1776898782-pr-aa-phoenix-migration(commitded7d24).mainalready absorbed everything else from PR #31 as4a1f69a; this PR closes the remaining gap.Type of Change
Related Issues
Supersedes closed PR #31.
Testing
Verification on the builder box:
shellcheck --severity=warning scripts/deployment/install-prune-cron.sh→ cleanbash -n scripts/deployment/install-prune-cron.sh→ cleansystemd-analyze verify scripts/deployment/systemd/currencicombo-orchestrator.service→ no errors on this unitsudo bash scripts/deployment/install-prune-cron.sh --dry-run→ prints exact cron body,RETAIN_DAYS=30,KEEP_MIN=5, targeting/var/lib/currencicombo/backupsnginx -Tonwebapp-nginx.confnot run here (nginx not installed on this builder); exercised during PR #31 pre-close verificationCT 8604 cutover is artifacts-only: after merge, operator runs
install.sh→deploy-currencicombo-8604.sh→ applies the NPMplus/api/*location rule → runs the 5 public smokes documented inscripts/deployment/README.md.Checklist
main's README already documents these three files; the gap was the files themselves)Additional Notes
install-prune-cron.shis opt-in and not called frominstall.sh. The other two files are required forinstall.sh/deploy-currencicombo-8604.sh/currencicombo-webapp.serviceto work at all.4a1f69a) a6a9d38bce