【发布时间】:2020-06-08 19:37:49
【问题描述】:
所以我做了经典的过程: git add 。 git commit -am “初始提交” git push heroku master。但是在做 push heroku master 时,它给出了一个关于 buildpacks 的错误,并且 pre-receive hook 被拒绝。所以我手动将 buildpack 设置为 heroku/python。现在它给出了这个错误。我正在使用heroku cli进行部署
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 12 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 2.77 KiB | 2.77 MiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-
registry.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 msdosdiscordbot.
remote:
To https://git.heroku.com/msdosdiscordbot.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/msdosdiscordbot.git'
如果有人可以提供帮助,我会非常高兴。
【问题讨论】:
-
您好,我通过添加 .gitignore、requirements.txt 和 Procfile 解决了这个问题
标签: heroku discord.py