2
gunicorn是否有像uwsgi的觸摸重新加載?gunicorn touch-reload
我正在開發一些web應用程序,並且需要檢查一些更改。早些時候,我用uwsgi和touch-reload一起使用,它很棒!但由於某種原因,我將其更改爲gunicorn(生成0字節),並且在代碼更改中看不到任何autoreload/autorestart。
如何實現它?
gunicorn是否有像uwsgi的觸摸重新加載?gunicorn touch-reload
我正在開發一些web應用程序,並且需要檢查一些更改。早些時候,我用uwsgi和touch-reload一起使用,它很棒!但由於某種原因,我將其更改爲gunicorn(生成0字節),並且在代碼更改中看不到任何autoreload/autorestart。
如何實現它?
--touch-reload=path/to/file
爲uwsgi == --reload /path/to/file
爲gunicorn
您不能將文件名添加到gunicorn了'--reload'選項。它檢查你的任何文件是否改變。 – vdboor