简体   繁体   中英

Python Heroku app deployment “App not compatible with buildpack” error

I am trying to deploy my app in heroku, but is failing with "App not compatible with buildpack" error. I have added requirement.txt and procfile in my project, yet it is failing.

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 xyz.

Heroku build log is not providing much info either:

-----> App not compatible with buildpack: https://codon-
 buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz
   More info: https://devcenter.heroku.com/articles/buildpacks#detection-
 failure
!     Push failed

Can someone tell me if I am missing anything? I am trying git push method.

You need more precision. Required file for python buildpack is requirements.txt . Make sure that you added it to your repository. Also procfile should be named Procfile .

您应该将INDEX文件添加到主目录,在我的情况下,我只是添加了index.php文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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