Permalink
Browse files

Rev bump. Updated index.html to include Joyent. README.md now has bot…

…h writers in Ruby and Node and includes their deployment instructions.
  • Loading branch information...
benzenwen committed Mar 16, 2013
1 parent 9cc70a4 commit 4c7d7b7e60d1997bb928bb085dc46716cd6038d7
Showing with 59 additions and 14 deletions.
  1. +42 −5 README.md
  2. +16 −8 index.html
  3. +1 −1 package.json
View
@@ -1,16 +1,52 @@
This application is the message-consuming and web component of the system described in [this Heroku Dev Center article](https://devcenter.heroku.com/articles/build-realtime-polyglot-node-ruby-mongodb-socketio-app) and deployed to http://tractorpush.herokuapp.com/.
-The Ruby message queuing app can be found at: https://github.com/mongolab/tractorpush-writer-ruby
+The Ruby version of the message queuing app can be found at: https://github.com/mongolab/tractorpush-writer-ruby
-#### Deploy
+The Node version can be found at: https://github.com/mongolab/tractorpush-writer-node
+
+### Heroku deploy instructions
+
+#### Writer app in Ruby
+
+Pull from github
+
+```term
+$ 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.
+
+```term
+$ heroku create tp-writer
+$ heroku addons:add mongolab
+```
+
+(deprecated) Next, [configure the required MongoDB capped collection](https://devcenter.heroku.com/articles/build-realtime-polyglot-node-ruby-mongodb-socketio-app#configure_mongodb_capped_collection).
+
+Then deploy to Heroku and scale the `worker` process.
+
+```term
+$ git push heroku master
+$ heroku ps:scale worker=1
+$ cd ..
+```
+#### Web server app in Node.js
+
+Pull from github
+
+```term
+$ git clone https://github.com/mongolab/tractorpush-server.git
+$ cd tractorpush-server
+```
Create the app on Heroku.
```term
-$ heroku create -s cedar tp-web
+$ heroku create tp-web
```
-Copy the `MONGOLAB_URI` config var from the message queuing app to this one.
+Copy the `MONGOLAB_URI` config var from the message writer app to this one.
```term
$ heroku config:add -a tp-web `heroku config -a tp-writer -s | grep MONGOLAB_URI`
@@ -21,4 +57,5 @@ Then deploy to Heroku and open in your browser
```term
$ git push heroku master
$ heroku open
-```
+```
+
View
@@ -33,8 +33,9 @@
by Ben Wen, ObjectLabs
- ObjectLabs is the maker of MongoLab.com a cloud, hosted MongoDb
- service
+ ObjectLabs is the maker of MongoLab.com a cloud MongoDb-as-a-Service
+ provider.
+
-->
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
@@ -142,13 +143,20 @@ <h3>Complex only</h3>
</div>
<div class='descript'>
- This is a demonstration of a Socket.IO client that accepts two message streams from a server asynchronously. The left box updates on the arrival of the 'all messages' stream: simple, array, or complex. The right box updates from a message stream of only 'complex' type. The streams are independent but draw from the same source.
-<p> The server is node.js running Socket.IO. It reads from a capped MongoDB database with a tailable cursor. A secondary set of servers (it happens to be in Ruby) originally wrote to the database.
-<p> Note: Sequence numbers may not be unique.
-<p> The node.js and Ruby components are running on Heroku's Celedon Cedar stack. The MongoDB database is hosted at MongoLab. https://github.com/mongolab/tractorpush-server for more information.
-<p> Original Demo: 2012 March
+ This demonstration of a Socket.IO client accepts two message streams from a server asynchronously. The left box is updated on the arrival of the 'all messages' stream. Messages can be one of three types: simple, array, or complex. The right box is updated from a message stream of only the 'complex' type. The streams are independent but draw from the same source.
+
+<p> The server is running Node.js and uses Socket.IO. It reads from a MongoDB capped collection using a tailable cursor. The tailable cursor allows the server to pick up changes to the database dynamically. A separate writer process writes to the database.
+
+<p> The server components have been tested on Heroku's Celedon Cedar stack and Joyent's Cloud. The MongoDB database is hosted at MongoLab. Code at<br/>
+ <a href="https://github.com/mongolab/tractorpush-server">https://github.com/mongolab/tractorpush-server</a>,<br/>
+ <a href="https://github.com/mongolab/tractorpush-writer-ruby">https://github.com/mongolab/tractorpush-writer-ruby</a>, and<br/>
+ <a href="https://github.com/mongolab/tractorpush-writer-node">https://github.com/mongolab/tractorpush-writer-node</a>.<br/>
+
+
+
+<p> Original Demo: 2012 March. Updated 2013 March.
<p>
- Copyright 2012 ObjectLabs Corp.
+ Copyright 2012, 2013 ObjectLabs Corp.
<p> MIT License
View
@@ -7,7 +7,7 @@
"engines" : {
"node" : ">=0.6.10"},
"keywords" : ["mongodb", "mongo", "mongolab", "node.js", "node", "socket.io", "WebSockets"],
- "version": "0.9.0",
+ "version": "0.9.1",
"author" : "Ben Wen",
"contributors" : {"mongodb - node.js driver" : "Christian Amor Kvalheim <christkv@gmail.com>, et. al.",
"numerous valuable additions" : "Ryan Daigle, Heroku"}

0 comments on commit 4c7d7b7

Please sign in to comment.