Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Juggernaut on Heroku

Clone repo:

git clone git://
cd juggernaut

Create Heroku app:

heroku create myapp --stack cedar
heroku addons:add redistogo:nano
git push heroku master
heroku ps:scale web=1
heroku open

Find RedisToGo url

heroku run node

And then publish from Juggernaut's Ruby gem:

require "juggernaut"
Juggernaut.url = "REDISTOGO_URL"
Juggernaut.publish("channel1", "woo! it's working")
Copy link

Rick823 commented Dec 3, 2011

Hello. Thank you for these instructions: I tried these steps, but for some reason, heroko logs show the messages are being published correctly, but the application that is subscribing isn't picking up on the data.

We set ENV["REDIS_URL"] to the RedistoGo server url, and set Juggernaut.url = ENV["REDIS_URL"]. We also are including application.js from the Juggernaut app. Are there any steps that I might be missing to properly subscribe?


Copy link

Rick823 commented Dec 4, 2011

I got this to work by following the instructions here: maccman/juggernaut#87


Copy link

alexandre-mbm commented Mar 11, 2015

@maccman and @Rick823, I'm trying to use it without the add-on on Heroku. I set REDISTOGO_URL manually. But I get error H13. Do I can not use without the add-on due to some kind of Redis To Go infrastructure dedicated to Heroku?

Copy link

alexandre-mbm commented Mar 11, 2015

I found that I needed specify an old version for the node. And that I must use engines instead engine.

Possibly I will pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment