Skip to content

Railway deploy

Historical layout for production:

Service Role
Web python run.py / Uvicorn src.endpoints.main:app
Worker Celery worker (src.celery_app)
Beat Celery Beat
Postgres DATABASE_URL
Redis REDIS_URL
Optional bucket Screenshot uploads (ENDPOINT ≈ Railway storage)

Checklist that was used

  1. Create project; add Postgres + Redis; attach to web/worker/beat.
  2. Set env vars from Environment variables. Split encrypt keys on web, decrypt keys on worker.
  3. Install Playwright browsers in the worker image/build step.
  4. Confirm /health (with internal secret if middleware requires it on that path).
  5. Manually POST /api/magic-link once, enroll a test user, then run a worker task or wait for a biweekly Sunday.

Notes

  • Railway injects PORT and often DATABASE_URL.
  • Keep ENVIRONMENT=production for secure cookies.
  • Worker concurrency of 1 avoided overlapping browser sessions.
Signoff archive • Material for MkDocs