Complete missing UX flows and production integrity commands
All checks were successful
CI / ci (pull_request) Successful in 32s

This commit is contained in:
Codex_B
2026-02-28 13:20:25 +00:00
parent 2cb1e622e2
commit 683cba4280
18 changed files with 279 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ git pull origin main
pip install -r requirements/production.txt
python manage.py migrate --run-syncdb
python manage.py collectstatic --noinput
python manage.py tailwind build
python manage.py check_content_integrity
sudo systemctl reload gunicorn
```
@@ -55,3 +57,11 @@ sudo systemctl reload gunicorn
- PostgreSQL dump daily: `pg_dump | gzip > backup-$(date +%Y%m%d).sql.gz`
- `MEDIA_ROOT` rsynced offsite daily
- Restore DB: `gunzip -c backup-YYYYMMDD.sql.gz | psql "$DATABASE_URL"`
- Restore media: `rsync -avz <backup-host>:/path/to/media/ /srv/nohypeai/media/`
## Runtime Notes
- Keep Caddy serving `/static/` and `/media/` directly in production.
- Keep Gunicorn behind Caddy and run from a systemd service/socket pair.
- Use `python manage.py purge_old_comment_data --months 24` in cron for comment-data retention.