
- Update start.sh to use dynamic path detection and better error handling - Fix Supervisor configuration to use proper relative paths with %(here)s - Resolve stderr logging conflicts by using redirect_stderr=true consistently - Add proper environment variables to supervisor.conf - Reduce workers to 1 to prevent memory issues on smaller servers - Added comprehensive troubleshooting guide to README - Enhance startup process with detailed logging and migration handling - Configure proper user and permissions
15 lines
365 B
Plaintext
15 lines
365 B
Plaintext
[program:app-8001]
|
|
command=%(here)s/start.sh
|
|
directory=%(here)s
|
|
user=appuser
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=10
|
|
numprocs=1
|
|
startsecs=5
|
|
stopwaitsecs=60
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stdout_logfile_maxbytes=50MB
|
|
stdout_logfile_backups=10
|
|
environment=PYTHONPATH="%(here)s",PATH="/usr/local/bin:/usr/bin:/bin" |