我成功地安装了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,但没有成功。如果回滚到以前的提交(其中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)发布于 2015-10-08 19:44:56
这个问题似乎是在远程卸载所有需求并重新安装它们之后自行修复的。
发布于 2015-10-08 17:06:26
确保gunicorn在requirements.txt中
发布于 2018-05-28 00:03:50
我错过了heroku/,所以我去了仪表板,并且:
Settings -> Add buildpack -> heroku/pythonhttps://stackoverflow.com/questions/33021874
复制相似问题