繁体   English   中英

Python Heroku应用程序部署“应用程序与buildpack不兼容”错误

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

我正在尝试在heroku中部署我的应用程序,但由于“应用程序与buildpack不兼容”错误而失败。 我在项目中添加了require.txt和procfile,但是失败了。

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构建日志也不提供太多信息:

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

有人可以告诉我我是否想念任何东西吗? 我正在尝试git push方法。

您需要更高的精度。 python buildpack的必需文件是requirements.txt 确保已将其添加到存储库中。 procfile也应命名为Procfile

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

暂无
暂无

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

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