how to use uwsgi restart django -
i have wsgi.ini
file in project, , use uwsgi wsgi.ini
run project.but when change django code,i want restart project instead kill uwsgi reload it. uwsgi official document provide following methods: # using kill send signal kill -hup `cat /tmp/project-master.pid` # or convenience option --reload uwsgi --reload /tmp/project-master.pid # or if uwsgi started touch-reload=/tmp/somefile touch /tmp/somefile
don't have project-master.pid
file in /tmp
catalog in system(centos).
my question:
- how use uwsgi restart django instead of kill start it?
- if use uwsgi official document provided method,how create
.pid
file , content should in file?
you don't need use uwsgi server local development needs. apache/uwsgi meant production, , having them restarted implicitly @ every code change not desirable. in fact, production server not restarting after code changed acts safety net, don't end restarting server without finalising deployment.
just use inbuild server django provides itself.
python manage.py runserver 8000
Comments
Post a Comment