[英]Django project can't be deployed to Heroku
我正在尝试部署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但是,它仍然抛出错误:
远程:----->无法检测到与https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack匹配的应用程序那么,这个问题有什么解决办法吗?
PS:python是2.7.12
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.