主管与gunicorn和没有记录

alf*_*eza 5 supervisord gunicorn

我试图用gunicorn + supervisor运行一个小的WSGI应用程序,虽然一切正常,但我无法登录到文件.

如果我直接运行gunicorn命令,它确实可以工作,将所有输出发送到我指定的文件,但是一旦我尝试与主管相同的事情,它就不会.

我最近把这个小的WSGI应用程序从uwsgi移到了gunicorn,我没有uwsgi登录到文件的问题,所以我怀疑我要么在与主管合作时丢失了gunicorn所需要的东西,要么存在一个不明显的问题.我.

该应用程序被调用upload,这是该应用程序的主管配置如下所示:

[program:upload]
command=/vagrant/venv/bin/gunicorn -w 4 upload.wsgi:application --log-file /vagrant/log/application.log --log-level debug
directory=/vagrant
autostart=true
autorestart=true
Run Code Online (Sandbox Code Playgroud)

该文件/vagrant/log/application.log永远不会得到任何输入.如果我command直接执行上述操作,那么正常的gunicorn信息有关启动工作人员的信息:

2013-08-20 14:01:24 [1898] [INFO] Starting gunicorn 17.5
2013-08-20 14:01:24 [1898] [DEBUG] Arbiter booted
2013-08-20 14:01:24 [1898] [INFO] Listening at: http://127.0.0.1:8000 (1898)
2013-08-20 14:01:25 [1898] [INFO] Using worker: sync
2013-08-20 14:01:25 [1903] [INFO] Booting worker with pid: 1903
...
Run Code Online (Sandbox Code Playgroud)

我也试图redirect_stderr在supervisor配置中使用,但也确实使日志文件获取任何信息.

这是一个已知的问题吗?或者我需要一些其他旗帜?(注意应用正在使用gevent,不确定这是否与此问题相关)