Heroku gunicorn不工作(bash:gunicorn:命令未找到)

前端之家收集整理的这篇文章主要介绍了Heroku gunicorn不工作(bash:gunicorn:命令未找到)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我成功安装了gunicorn:
  1. remote: -----> Removing .DS_Store files
  2. remote: -----> Python app detected
  3. remote: -----> Installing dependencies with pip
  4. remote: Collecting gunicorn==19.0.0 (from -r requirements.txt (line 1))
  5. remote: Downloading gunicorn-19.0.0.tar.gz (382kB)
  6. remote: Installing collected packages: gunicorn
  7. remote: Running setup.py install for gunicorn
  8. remote: Successfully installed gunicorn-19.0.0

我的Procfile:

  1. web: gunicorn myapp:app --log-file=-

但部署时应用程序崩溃:

  1. bash: gunicorn: command not found

我尝试添加heroku python buildpack,但没有运气。如果我回滚到先前的提交(其中requirements.txt和Procile都未更改),它的工作原理如下:

  1. heroku/web.1: Starting process with command `gunicorn myapp:app --log-file=-`
  2. app/web.1: 2015-10-08 17:04:18 [3] [INFO] Listening at: http://0.0.0.0:51854 (3)
确保gunicorn在您的requirements.txt中

猜你在找的Bash相关文章