Skip to content

Instantly share code, notes, and snippets.

@phuphighter
Forked from maccman/juggernaut_heroku.md
Created February 5, 2012 17:23
Show Gist options
  • Save phuphighter/1746703 to your computer and use it in GitHub Desktop.
Save phuphighter/1746703 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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment