CodeKitz
Log in
Deploy django uWSGI to Supervisor
Django
Supervisor
uWSGI
Edit
Option
Deploy django uWSGI to Supervisor
Script
Copy
cat <<EOT >> /etc/supervisord.d/{{PROGRAM}}.conf [program:{{PROGRAM}}] directory={{PROJECT_PATH}} command=/usr/local/bin/uwsgi --socket uwsgi.sock --chmod-socket=666 --processes {{ PROCESSES }} -w {{PROJECT_NAME}}.wsgi autostart=true autorestart=false redirect_stderr=true stdout_logfile=/var/log/supervisor/{{PROGRAM}}-stdout.log stderr_logfile=/var/log/supervisor/{{PROGRAM}}-stderr.log EOT