尝试部署discord.py bot时出现Heroku错误

时间:2020-06-08 19:37:49

标签: heroku discord.py

所以我做了经典的过程:git add。 git commit -am“初始提交” git push heroku master。但是当执行push heroku master时,它给出了有关buildpacks的错误,并且预接收钩子被拒绝。因此,我将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'

如果有人可以帮助我,我将非常高兴。

1 个答案:

答案 0 :(得分:0)

只需添加.gitignore requirements.txt和procfile。