I would like to permanently run the Discord Bot I created using Heroku.
I'm working with GitHub now, but I don't know if the method is right.
I just created a repository on GitHub and moved the program I made with VScode and other files to the file I made and GitPush at the terminal of VScode.
I'm sorry if the method is wrong at this point.
Error Code Received When Running "Deploy Branch"
Python app detected
! Requested runtime (Python-3.9.1) is not available for this stack (heroku-18).
! Aborting.More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed
According to the link,
If you receive the error qRequested runtime is not available for this stack と using any of the above versions, make sure that the app is using the latest version of Python build pack.
That's right.
As the link says,
heroku buildpacks:clear
heroku buildpacks —add heroku/python
heroku buildpacks
Let's run the command in the
There is a file called runtime.txt in the root directory of the bot.Try changing Python-3.9.1 to python-3.9.1
.
© 2025 OneMinuteCode. All rights reserved.