2013-08-16 58 views
2

gunicorn是否有像uwsgi的觸摸重新加載?gunicorn touch-reload

我正在開發一些web應用程序,並且需要檢查一些更改。早些時候,我用uwsgi和touch-reload一起使用,它很棒!但由於某種原因,我將其更改爲gunicorn(生成0字節),並且在代碼更改中看不到任何autoreload/autorestart。

如何實現它?

回答

1

--touch-reload=path/to/file爲uwsgi == --reload /path/to/file爲gunicorn

+0

您不能將文件名添加到gunicorn了'--reload'選項。它檢查你的任何文件是否改變。 – vdboor