Skip to content

Instantly share code, notes, and snippets.

@maccman
Created June 2, 2011 01:26
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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")
@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