gpt4 book ai didi

heroku - 应用程序与 buildpack 不兼容 - Heroku

转载 作者:行者123 更新时间:2023-12-03 11:51:55 24 4
gpt4 key购买 nike

当我跑 git push heroku master这就是我得到的:

C:\Users\Emanuele-PC\Desktop\project-mm-beta>git push heroku master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 505 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
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 project-mm-beta.
remote:
To https://git.heroku.com/project-mm-beta.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/project-mm-beta.git'

我试图部署的代码只是一个文件(这是一个测试,因为这是我第一次使用 Heroku)并且它是用 Python 编写的。我已经设置了 buildpack (python) 但它仍然不起作用。我该如何解决?

最佳答案

只有当应用程序具有 Pipfile 或 requirements.txt 时,Heroku Python 支持才会应用于应用程序。在根目录中。

访问 documentation以获取详细说明。

关于heroku - 应用程序与 buildpack 不兼容 - Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46109465/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com