J
J
Jirafek2021-12-02 21:41:54
Node.js
Jirafek, 2021-12-02 21:41:54

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.61a91357a0d43410610674.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2021-12-03
@iDmitriyWinX

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 question

Ask a Question

731 491 924 answers to any question