在heroku上部署我的django网站时出现错误
问题描述:
我使用django创建了个人网站,同时还包含博客。您可以通过点击here在heroku上部署我的django网站时出现错误
我有procfile并在Heroku的网站上说,做在命令提示符下所指示的Heroku的requirements.txt文件看到我的github仓库的确切目录清单和源代码:
$ heroku login
$ heroku git:clone -a appname
$ cd appname
$ git add .
$ git commit -am "make it better"
$ git push heroku master
现在我看到下面的错误,同时部署和推动失败:
Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
是的,有在目录中procfile虽然。 请帮我部署这个网站在heroku。
答
您的文件被称为Procfile.txt。它应该被称为Procfile。
答
可能是因为您制作了.txt
文件而不是非扩展名文件,或者您将其命名为procfile
而不是Procfile
。 Heroku对大写字母敏感。