我正在尝试在heroku上部署django应用程序。
这是我的proc文件:
web: gunicorn playlist.wsgi --log-file -
这是我的requirments.txt:
dj-database-url==0.4.1
Django==1.9.6
gunicorn==19.5.0
whitenoise==3.0
以下是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'
我也尝试过:
heroku buildpacks:set heroku/python
答案 0 :(得分:0)
我把Procfile
放在了错误的地方。它应该位于您的存储库的根目录。