【发布时间】:2016-01-06 10:26:05
【问题描述】:
我成功安装了 gunicorn:
remote: -----> Removing .DS_Store files
remote: -----> Python app detected
remote: -----> Installing dependencies with pip
remote: Collecting gunicorn==19.0.0 (from -r requirements.txt (line 1))
remote: Downloading gunicorn-19.0.0.tar.gz (382kB)
remote: Installing collected packages: gunicorn
remote: Running setup.py install for gunicorn
remote: Successfully installed gunicorn-19.0.0
我的档案:
web: gunicorn myapp:app --log-file=-
但应用在部署时崩溃:
bash: gunicorn: command not found
我尝试添加 heroku python buildpack,但没有成功。如果我回滚到之前的提交(requirements.txt 和 Procile 都没有改变),它可以工作:
heroku/web.1: Starting process with command `gunicorn myapp:app --log-file=-`
app/web.1: 2015-10-08 17:04:18 [3] [INFO] Listening at: http://0.0.0.0:51854 (3)
【问题讨论】: