我想使用 supervisord 为我的 Django 项目运行一些命令,但我不断收到以下错误:
主管.log:
2012-05-18 17:52:15,784 INFO spawnerr: can't find command 'source'
Run Code Online (Sandbox Code Playgroud)
如果我删除“源”命令,日志会显示相同的错误:can't find command 'python'.
supervisord.conf 摘录:
[program:django]
directory=/home/mf/projects/djangopj/
command=beanstalkd -l 127.0.0.1 -p 11300
command=source /home/mf/virtualenvs/env/bin/activate
command=python manage.py command1
command=python manage.py command2
user=mf
autostart=true
autorestart=true
Run Code Online (Sandbox Code Playgroud)
我尝试删除目录并将绝对路径添加到命令中,但我一直收到相同的错误。
我使用以下命令运行 supervisord:
supervisord -c supervisord.conf -l supervisor.log
Run Code Online (Sandbox Code Playgroud)