我正在尝试部署Django项目。 首先,我收到了这个错误:
Counting objects: 74, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (65/65), done.
Writing objects: 100% (74/74), 25.74 KiB | 0 bytes/s, done.
Total 74 (delta 24), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect app matching https://codon-
buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack
remote: More info:
https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to nicoplus.
remote:
To https://git.heroku.com/nicoplus.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/nicoplus.git'
然后,我设置了buildpack:
heroku buildpacks:set heroku/python但是,它仍然会抛出一个错误:
remote: -----> Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack那么,这个问题的解决方案是什么?
PS:python是2.7.12
答案 0 :(得分:0)