irc-slack-echo
irc-slack-echo copied to clipboard
Running on Heroku
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, {
Want to submit that as a pull request, instead of inline code?
What did you use for your Procfile? Mine is just "web: node ." and it seems to go down after a period of inactivity...
@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).
needed to do this for debian too, thanks