Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node.js, socket.io, Ruby, MongoDB tailed cursor demo
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Procfile
README.md
app.js
index.html updated 2014, libraries
package.json

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.