0
我正在尝试将我非常基本的django网站部署到heroku并一直出错。我在根目录中有一个Procfile.txt和requirements.txt文件,但它始终保持procfile缺少错误。您的应用程序缺少Procfile - 在Heroku上部署django网站时出现错误
我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
如果此信息不足以找到解决方案然后告诉我。 谢谢
是它命名为Procfile和它的一个txt文件 – Ishan
请显示实际的目录列表。 –