简体   繁体   English

Heroku push由于缺少python buildpack而被拒绝

[英]Heroku push rejected for lack of python buildpack

I'm trying to deploy to heroku and have my requirements.txt, Procfile, and app.py file in the root directory. 我正在尝试部署到heroku,并将我的requirements.txt,Procfile和app.py文件放在根目录中。 I created my heroku instance with heroku create --buildpack heroku/python but I still get 我用heroku create --buildpack heroku/python创建了我的heroku实例,但是我仍然得到

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 desolate-basin-41623.
remote: 

I've gone onto several forums and can't really seem to figure out why that is. 我已经去了几个论坛,但似乎无法弄清楚为什么会这样。 I'm also pushing from the master branch, which seems to be something people overlook. 我也从master分支推送,这似乎是人们忽略的事情。

I did, however, I initialized my git instance above the root directory. 但是,我确实在根目录上方初始化了git实例。

我知道了,事实证明,您必须在根目录内初始化github。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM