irc-slack-echo icon indicating copy to clipboard operation
irc-slack-echo copied to clipboard

Running on Heroku

Open forresto opened this issue 10 years ago • 4 comments

FYI, to get this running on Heroku I had to make a couple of tweaks:

config.js, the process.env.PORT

outgoingWebhookServer: {
  port: Number(process.env.PORT || 5000),

lib/slack.js, the 0.0.0.0

var server = new Hapi.Server('0.0.0.0', config.slack.outgoingWebhookServer.port, {

forresto avatar May 14 '14 20:05 forresto

Want to submit that as a pull request, instead of inline code?

rknLA avatar May 14 '14 22:05 rknLA

What did you use for your Procfile? Mine is just "web: node ." and it seems to go down after a period of inactivity...

turnrye avatar Aug 09 '14 06:08 turnrye

@ryanturner I've been keeping the bot up as a single worker dyno, but that means I can't post slack -> irc. That works for me, since I'm just using it to archive. To keep a web one up, you need >1 dyno (or a hack like this: http://www.gingilipino.com/brian/keep-heroku-apps-up.html).

forresto avatar Aug 09 '14 09:08 forresto

needed to do this for debian too, thanks

zylinx avatar Nov 04 '14 19:11 zylinx