[program:xx]
directory = /root/app/xx
environment =PYTHONPATH=/root/anaconda3/envs/xx;DJANGO_SETTINGS_MODULE=xx.settings.dev2;env=dev2
command = /root/anaconda3/envs/xx/bin/gunicorn -w 3 -b 127.0.0.1:8000 xx.wsgi:application
autostart = true
autorestart = true
redirect_stderr = true
user = root
stdout_logfile_maxbytes = 20MB
stdout_logfile_backups = 10
stdout_logfile = /root/app/log/xx_gunicorn.log
stderr_logfile = /root/app/log/xx_error.log
DJANGO_SETTINGS_MODULE=xx(项目名).settings.dev2
附上我的settings目录结构