
- Update database path configuration for better compatibility - Add comprehensive logging system with error handling - Create supervisord.conf with proper configuration - Add environment variable example file - Enhance health check endpoint to report database status - Add detailed startup and shutdown event handlers - Update documentation with troubleshooting information - Update requirements with additional helpful packages
22 lines
511 B
Plaintext
22 lines
511 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/tmp/supervisord.log
|
|
logfile_maxbytes=50MB
|
|
logfile_backups=10
|
|
loglevel=info
|
|
pidfile=/tmp/supervisord.pid
|
|
|
|
[program:app-8001]
|
|
command=uvicorn main:app --host 0.0.0.0 --port 8001
|
|
directory=/projects/bloggingapi-a05jzl
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=5
|
|
numprocs=1
|
|
startsecs=1
|
|
redirect_stderr=false
|
|
stdout_logfile=/tmp/app-8001.log
|
|
stderr_logfile=/tmp/app-8001-error.log
|
|
stdout_logfile_maxbytes=50MB
|
|
stdout_logfile_backups=10
|
|
environment=PORT=8001,PYTHONUNBUFFERED=1 |