Skip to content

Instantly share code, notes, and snippets.

@maccman
Created June 2, 2011 01:26
Show Gist options
  • Save maccman/1003748 to your computer and use it in GitHub Desktop.
Save maccman/1003748 to your computer and use it in GitHub Desktop.
Juggernaut on Heroku

Clone repo:

git clone git://github.com/maccman/juggernaut.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
process.env.REDISTOGO_URL

And then publish from Juggernaut's Ruby gem:

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

Rick823 commented Dec 4, 2011

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

Thanks.

@alexandre-mbm
Copy link

@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?

@alexandre-mbm
Copy link

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