Skip to content

Instantly share code, notes, and snippets.

@ntenisOT
Forked from maccman/juggernaut_heroku.md
Created June 21, 2011 17:50
Show Gist options
  • Save ntenisOT/1038437 to your computer and use it in GitHub Desktop.
Save ntenisOT/1038437 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 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