Skip to content

docs: add production deployment section to README#1

Merged
ChristopherFibich merged 1 commit intomainfrom
copilot/research-ticket-system-service-setup
Apr 14, 2026
Merged

docs: add production deployment section to README#1
ChristopherFibich merged 1 commit intomainfrom
copilot/research-ticket-system-service-setup

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

Appends a "Production deployment (bare-metal / systemd)" section to the README covering everything needed to run the service outside of Docker or the dev server.

Added content

  • Environment variables table — all six DJANGO_* vars, their defaults, and purpose
  • One-time setup steps — venv creation, migrate, collectstatic, DB directory
  • systemd unit file — ready-to-drop /etc/systemd/system/ticketsystem.service with ExecStartPre migration, Gunicorn bind/workers, journal logging, and Restart=on-failure
  • Crontab entries@reboot entry (with sleep 10 guard) to catch overdue tickets at boot, plus the nightly 0 3 * * * run; both use the venv Python directly and log to /var/log/ticketsystem-spawn.log
  • Notes that WhiteNoise serves static files through Gunicorn so no reverse proxy is required, and that spawn_recurring_tickets is idempotent

Agent-Logs-Url: https://github.com/ChristopherFibich/TicketSystem/sessions/655ff150-35ef-4e2b-920d-7ed31b7db446

Co-authored-by: ChristopherFibich <159089679+ChristopherFibich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants