From 2564f3492fa6b67eb4123ad8f1c22e710b5fb7c3 Mon Sep 17 00:00:00 2001 From: Jeremiah Billmann Date: Fri, 9 Aug 2013 15:17:17 -0400 Subject: [PATCH] Updated docs --- example/README.md | 2 ++ example/app.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/README.md b/example/README.md index 1e457df..9e6a12b 100644 --- a/example/README.md +++ b/example/README.md @@ -3,4 +3,6 @@ A sample application using GarageServer.IO ## Install +Change the `path` parameter of `GarageServerIO.initializeGarageServer` that is found in file, `/public/javascripts/game.js`, to point to the URL where your Node app runs. I.e. `http://127.0.0.1:3000`. + Execute `$ npm install` in the `example/` root directory and `$ node app.js` to run the application. \ No newline at end of file diff --git a/example/app.js b/example/app.js index 1136da7..91127aa 100644 --- a/example/app.js +++ b/example/app.js @@ -7,7 +7,7 @@ var express = require('express'), app = express(); app.configure(function () { - app.set('port', process.env.PORT || 2121); + app.set('port', process.env.PORT || 3000); app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.favicon());