[英]Git push heroku master fails django
I am trying to deploy a django application on heroku. 我正在尝试在heroku上部署Django应用程序。
Here is my proc file: 这是我的proc文件:
web: gunicorn playlist.wsgi --log-file -
Here is my requirments.txt: 这是我的requirments.txt:
dj-database-url==0.4.1
Django==1.9.6
gunicorn==19.5.0
whitenoise==3.0
Here is the error messege on git push heroku master
这是git push heroku master
上的错误信息
Counting objects: 191, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (173/173), done.
Writing objects: 100% (191/191), 105.35 KiB | 0 bytes/s, done.
Total 191 (delta 91), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/python
remote:
remote: ! Push rejected, failed to detect set buildpack heroku/python
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to shielded-fortress-12681.
remote:
To https://git.heroku.com/shielded-fortress-12681.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/shielded-fortress-12681.git'
I have also tried: 我也尝试过:
heroku buildpacks:set heroku/python
I was putting the Procfile
in the wrong place. 我将Procfile
放在错误的位置。 It should be at the root of your repository. 它应该在您的存储库的根目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.