Skip to content
Node.js, socket.io, Ruby, MongoDB tailed cursor demo
JavaScript
Failed to load latest commit information.
Procfile Inital commit. tractorpush is the server-half of a node.js, ruby, soc… Mar 12, 2012
README.md Rev bump. Updated index.html to include Joyent. README.md now has bot… Mar 15, 2013
app.js updated 2014, libraries Sep 4, 2014
index.html
package.json updated 2014, libraries Sep 5, 2014

README.md

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

Heroku deploy instructions

Writer app in Ruby

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 ..

Web server app in Node.js

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
Something went wrong with that request. Please try again.