Commit graph

7 commits

Author SHA1 Message Date
DJP
e7e177082d Mark pgdata volume external so compose stops warning about pre-existing volume
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 12:20:50 -04:00
DJP
929929113b Pin compose project name to avoid collision with other /opt/<app>/deploy/ apps
Compose derives project name from parent dir by default — every app on
this server landed on project "deploy", sharing container names and
volume namespaces. Another app on the box just lost 2 days of data from
this exact issue.

Fix: name: salary-benchmark in docker-compose.prod.yml, plus -p on every
docker compose call in deploy-local.sh and deploy.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 11:39:49 -04:00
DJP
468c936d30 Move URL subpath from /opt/ to /salary-benchmark/
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 20:06:56 -04:00
DJP
8116886770 Put .env.prod next to compose file so env_file: resolves correctly
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 20:04:30 -04:00
DJP
5b85d7295f Default VHOST_FILE to sites-enabled path and resolve symlinks
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 20:02:26 -04:00
DJP
6564991cdf Add deploy-local.sh for in-place deploy on server
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 19:54:07 -04:00
DJP
e9b9c66423 Add login (JWT + local admin user) and deploy script for optical-dev
- Backend: users table + admin seed (004), /api/auth endpoints, JWT auth
  dep gating benchmarks + research routes
- Frontend: AuthContext, LoginPage, ProtectedRoute, subpath-aware via
  VITE_BASE / import.meta.env.BASE_URL so same build works at /opt/
- deploy/: Dockerfile.prod, docker-compose.prod.yml, Apache vhost
  fragment template, and idempotent deploy.sh (port scan, rsync, env
  generation, Apache Include + reload)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 19:34:15 -04:00