This application is the message-consuming and web component of the system described in this Heroku Dev Center article and deployed to http://tractorpush.herokuapp.com/.
The Ruby version of the message queuing app can be found at: https://github.com/mongolab/tractorpush-writer-ruby
The Node version can be found at: https://github.com/mongolab/tractorpush-writer-node
Pull from github
$ git clone https://github.com/mongolab/tractorpush-writer-ruby.git
$ cd tractorpush-writer-ruby
Create the app on Heroku and add the MongoLab add-on.
$ heroku create tp-writer
$ heroku addons:add mongolab
(deprecated) Next, configure the required MongoDB capped collection.
Then deploy to Heroku and scale the worker
process.
$ git push heroku master
$ heroku ps:scale worker=1
$ cd ..
Pull from github
$ git clone https://github.com/mongolab/tractorpush-server.git
$ cd tractorpush-server
Create the app on Heroku.
$ heroku create tp-web
Copy the MONGOLAB_URI
config var from the message writer app to this one.
$ heroku config:add -a tp-web `heroku config -a tp-writer -s | grep MONGOLAB_URI`
Then deploy to Heroku and open in your browser
$ git push heroku master
$ heroku open