Add automated prod deploy pipeline (nginx reverse proxy + atomic release swap)
Push to main now builds, ships the dist/ over SSH, and installs/configures nginx as a same-origin reverse proxy to the backend (matching the dev vite proxy's own /api contract - no CORS, no exposed backend port), with an atomic release symlink swap and a health check before declaring success. TLS via certbot is wired in but opt-in (PROD_DOMAIN unset = plain HTTP for now). Server access comes entirely from GitLab CI/CD variables (PROD_SERVER_IP, PROD_SSH_PRIVATE_KEY, PROD_SSH_PORT), reusing the same variable names the backend repo's own (still-disabled) deploy_prod job already established. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
deploy/scripts/deploy.sh
0 → 100755
Please
register
or
sign in
to comment