우도비
uwsgi 사용시 소스코드 자동갱신 본문
Python Auto-reloading (DEVELOPMENT ONLY!)
In production you can monitor file/directory changes for triggering reloads (touch-reload, fs-reload...).
During development having a monitor for all of the loaded/used python modules can be handy. But please use it only during development.
The check is done by a thread that scans the modules list with the specified frequency:
[uwsgi]
...
py-autoreload = 2
will check for python modules changes every 2 seconds and eventually restart the instance.
And again:
Warning
Use this only in development.
'linux > nginx' 카테고리의 다른 글
How To Set Up a Node.js Application for Production on Ubuntu 16.04 (0) | 2017.06.04 |
---|---|
How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 16.04 (0) | 2017.06.03 |
Nginx www 붙이기 (0) | 2017.06.02 |
Comments