【发布时间】:2016-07-30 12:47:54
【问题描述】:
我正在尝试将我非常基本的 django 网站部署到 heroku 并且一直出错。我在根目录中有一个 Procfile.txt 和 requirements.txt 文件,但它一直给出 procfile missing 错误。
我的 procfile 是:
web: gunicorn mysite.wsgi:application --log-file -
heroku ps:scale web=1
我的 requirements.txt 是:
Django==1.9.8
gunicorn
在构建日志中:
-----> Python app detected
! Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
! Learn more: https://devcenter.heroku.com/articles/procfile
-----> Uninstalling stale dependencies
Uninstalling virtualenv-15.0.2:
Successfully uninstalled virtualenv-15.0.2
$ pip install -r requirements.txt
Collecting gunicorn (from -r requirements.txt (line 2))
Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
Installing collected packages: gunicorn
Successfully installed gunicorn-19.6.0
-----> Discovering process types
Procfile declares types -> (none)
-----> Compressing...
Done: 41.3M
-----> Launching...
Released v7
https://jpthoyo.herokuapp.com/ deployed to Heroku
如果这些信息不足以找到解决方案,请告诉我。 谢谢
【问题讨论】: