Commit Graph

2 Commits

Author SHA1 Message Date
Henrik Jess Nielsen
5fc893755f Gunicorn: log to stdout/stderr + preload for crash visibility
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 47s
- --access-logfile - : access logs to stdout (visible in Nomad)
- --error-logfile -  : error logs to stderr (visible in Nomad)
- --log-level info   : show startup and worker events
- --preload          : load app before forking workers — crashes
                       surface immediately instead of silently dying
2026-04-28 21:46:57 +02:00
Henrik Jess Nielsen
f098c65ca0 Add deployment pipeline, Dockerfile, Nomad spec and tests
Some checks failed
Build and Deploy PunktFri / build-and-deploy (push) Has been cancelled
- Dockerfile: python:3.12-slim + gunicorn, dynamic port, BUILD_VERSION args
- punktfri.nomad: Traefik routing for punktfri.i80.dk, host volume for SQLite
- .gitea/workflows/deploy.yml: build/push to Harbor, deploy to Nomad
- Makefile: install/run/test/build targets
- tests/test_app.py: 9 pytest tests covering all routes and validation
- requirements.txt: add gunicorn
- requirements-dev.txt: pytest
- app.py: health endpoint returns version/commit info
2026-04-26 18:32:32 +02:00