[supervisord] nodaemon=true logfile=/dev/null pidfile=/tmp/supervisord.pid childlogdir=/tmp [unix_http_server] file=/tmp/supervisor.sock chmod=0770 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///tmp/supervisor.sock [program:django-web] # 🛠️ اصلاح اصلی: آدرس‌دهی مستقیم به gunicorn موجود در محیط مجازی (Virtual Environment) command=/opt/venv/bin/gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 3 directory=/app user=django autostart=true autorestart=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:celery-worker] # برای محکم‌کاری، آدرس سلری را هم به فایل اصلی ونیو متصل می‌کنیم command=/opt/venv/bin/celery -A config worker -l INFO directory=/app user=django autostart=true autorestart=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0