ekmartin / slack-irc

Connects Slack and IRC channels by sending messages back and forth.
MIT License
588 stars 157 forks source link

Deploy on Heroku #134

Closed martijnrusschen closed 8 years ago

martijnrusschen commented 8 years ago

Hi there,

Fantastic tool! Since I want to run this bot continuously, I tried to deploy this to Heroku. When trying to start the app, I'm stuck in this error: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

I created a Procfile (a way to define what Heroku needs to start) with the command in the readme: npm start -- --config config.json, and it looks like Heroku is picking the correct commands, however somehow this isn't booting correctly. Any suggestions on how I can get this running? I assume that 60 seconds should be enough to connect to the servers.

ekmartin commented 8 years ago

Hey, and thanks! This is because slack-irc never binds to a port (it just connects to Slack's realtime API through websockets). Not sure if a worker dyno would work better, but I haven't tried.

Wrote a bit about Heroku a while back: https://github.com/ekmartin/slack-irc/issues/12#issuecomment-84958867 Might be easier to just fire it up on a DigitalOcean droplet or similar.

martijnrusschen commented 8 years ago

Thanks! Yes I tried a worker too, but got many other errors that way. Anyways, moved it to Digital Ocean and it seems to work fine. Thanks again!

ekmartin commented 8 years ago

Great, glad you got it working :)