Modified code after django+nginx+uwsgi deployment cannot be updated in time

Reason analysis: usually used for local debugging

python manage.py runserver ip:port

In this way, after the project is deployed, you need to consider the uwsgi server, and you need to restart uwsgi every time you modify the code .

Program:

After the code is modified, enter the server project directory and view the uwsgi process:

ps -ef|grep uwsgi 

Then kill all processes:

killall -9 uwsgi

Restart uwsgi

uwsgi --ini uwsgi.ini 
注意:uwsgi.ini 一定是当前项目目录下的一个文件

 

Guess you like

Origin blog.csdn.net/weixin_38664232/article/details/105906274