supervisor 部署django网站的配置

Auth:admin Date:2024-09-16 8:35:38 Cat:技术笔记


[program:django-python]
#项目目录
direct=/var/www/www.facepools.com
#启动进程命令
command=/bin/bash -c "python3 /var/www/www.facepools.com/manage.py runserver 127.0.0.1:8080"
#是否自动启动
autostart=true
#是否自动重启
autorestart=true
stdout_logfile=/var/log/django_stdout.log
stderr_logfile=/var/log/django_stderr.log
user=root
stopsignal=TERM
startsecs=5
startretries=3
stopasgroup=true
killasgroup=true
标签:,