您的应用程序缺少Procfile - 在Heroku上部署django网站时出错

时间:2016-07-30 12:47:54

标签: django heroku

我正在尝试将我非常基本的django网站部署到heroku并一直收到错误。我在根目录中有一个Procfile.txt和requirements.txt文件,但它始终保持procfile缺失错误。

我的proc文件是:

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

如果此信息不足以找到解决方案,请告诉我。 感谢

1 个答案:

答案 0 :(得分:0)

该文件应该只调用Procfile,而不是Procfile.txt。