Python Heroku - App与buildpack不兼容

时间:2017-11-17 22:49:51

标签: python git heroku

我似乎无法弄清楚为什么我的Heroku推动在经过数小时的研究后仍然失败。该应用程序在我的终端中工作正常。

Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (12/12), 5.80 KiB | 5.80 MiB/s, done.
Total 12 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to agile-brook-99462.
remote: 
To https://git.heroku.com/agile-brook-99462.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/agile-brook-99462.git'

我做过的事情:

  • 将buildpack设置为heroku / python
  • 使用runtime.txt
  • 将Python版本设置为2.7
  • 添加了requirements.txt
  • 添加了Procfile
  • 尝试git push -f heroku master
  • 创建了一个新应用并重新尝试了所有步骤

上述步骤均无法解决问题。有什么提示吗?

0 个答案:

没有答案