mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Updated docs
This commit is contained in:
@@ -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.
|
||||
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user