Skip to content
maccman edited this page Jun 2, 2011 · 1 revision

Getting Juggernaut working on http://heroku.com is the matter of a few seconds, and best of all it's free!

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:

require "juggernaut"
Juggernaut.url = "REDISTOGO_URL"
Juggernaut.publish("channel1", "woo! it's working")
Clone this wiki locally