我有以下环境variables集(尝试12因子的应用程序方法):
PATH="/home/hope/env/bin:$PATH" /home/hope/env/bin是virtualenv的bin目录,其中包含gunicorn和python 。 但是在这个目录下运行命令会导致一些有趣的行为,即:
python作品,和sys.executable返回“/家庭/希望/环境/ bin / python”( which python说的)。 gunicorn不工作,尽pipewhich gunicorn返回“/ home / hope / env / bin / gunicorn”。 很显然,从这个Django应用程序的页面,我需要能够findgunicorn。 我觉得我错过了一些基本的,有什么想法?
编辑:杜,这是主pipe的输出: BACKOFF can't find command 'gunicorn' 。 python和gunicorn对于同一个用户/组是755。