-
Notifications
You must be signed in to change notification settings - Fork 2.3k
How to deploy on Heroku? #53
Comments
Hi, I'm having similar problems, when I run a simple botkit app on Heroku, I get after 60 seconds "Stopping all processes with SIGTERM" and the app shuts down. Now I know that a node.js server needs a port, and heroku spins them up dynamically, but do you know what I should change to do this?
|
Couple things.
|
Thanks! It worked really well, though the reddis bit needed some tweaking. On 12 May 2016 at 20:48, Corey Snyder notifications@github.com wrote:
|
Great! A tip, I turn off the bot in Heroku by sliding the worker dyno to "off" if you need the bot to go offline to work locally via the terminal or whatever. Also, Heroku will "restart" if you push to production some new code. Finally, the bot will have to "sleep" if you are using the free Heroku account for a few hours in each 24 hour cycle. So upgrade to the hobby account if you need your bot "awake" 24-7. |
see https://github.com/Daij-Djan/chatbot_templates for a checklist to deploy to heroku ;) |
This works! I forgot to add a Procfile which Heroku needs to start up the dyno (free plan) after periods of inactivity. There is just one line of code |
First of all, thanks for this amazing tool! I find it really helpful.
I've deployed my bot on Heroku. However, every now and then logs show messages like this
Stopping all processes with SIGTERM
and my bot goes offline.Is there any particular way to deploy this on Heroku?
Thank you!
The text was updated successfully, but these errors were encountered: