how to kill uWSGI process -
so have gotten nginx + uwsgi running django install
however problem having when make changes code need restart uwsgi process view changes
i feel running correct command here (i new linux btw):
uwsgi --stop /var/run/uwsgi.pid uwsgi --reload /var/run/uwsgi.pid
i no error when run these commands old code still loads
i know not coding issue because ran django app in development server , ran fine
the recommended way signal reloading of application data use --touch-reload
option. sample syntax on .ini fine is:
touch-reload /var/run/uwsgi/app/myapp/reload
where myapp
is application name. /var/run/uwsgi/app
recommended place such files (could anywhere). reload
file empty file timestamp watched uwsgi, whenever changes (by, example, using touch
) uwsgi detects change , restarts corresponding uwsgi application instance.
so, whenever update code should touch file in order update in-memory version of application. example, on bash:
sudo touch /var/run/uwsgi/app/myapp/reload
note --reload
undocumented option on current uwsgi version.
Comments
Post a Comment