Answer the question
In order to leave comments, you need to log in
How to deploy a server on heroku?
Hello, I decided to see how heroku works and launch a telegram bot there. I did it through github, made a deployment in heroku, everything worked. But after closing the heroku tab, the bot just lays down. Maybe I'm doing something wrong, or this is how it should work. But is it possible to make it so that when I close the tab everything continues to work.
Answer the question
In order to leave comments, you need to log in
You need to create a Procfile and write it there
worker: <команда запуска бота>
. By default, your Dyno type is web and all the problems because of this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question