A
A
Aleksandr Sechko2019-12-11 22:20:33
Python
Aleksandr Sechko, 2019-12-11 22:20:33

How to properly deploy a python bot on heroky?

C:\Users\Aleksandr\PycharmProjects\tori>git push heroku master
Counting objects: 22, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (22/22), 6.92 KiB | 191.00 KiB/s, done.
Total 22 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildp...
remote: More info: https://devcenter. heroku.com/articles/buildpacks#d...
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to mitus.
remote:
To https://git.heroku.com/mitus.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ' https://git.heroku.com/mitus.git '
Please tell me how to fix this.
And how to correctly compose a Procfile

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKY_nv, 2019-12-12
@SKY_nv

Go to the application settings on heroku and select heroku/python buildpack
add runtime.txt with the line python-3.7.5
In the Procfile line web:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question