changing socket.io to exist on the same port as the server, made config file template (removed config file from repo)

This commit is contained in:
Julian Lam
2013-04-22 15:23:02 -04:00
parent e6139487f6
commit 2d8725d522
5 changed files with 16 additions and 14 deletions

15
.gitignore vendored
View File

@@ -1,7 +1,8 @@
#################
## npm
#################
npm-debug.log
node_modules/
sftp-config.json
#################
## npm
#################
npm-debug.log
node_modules/
sftp-config.json
public/config.json

View File

@@ -0,0 +1,6 @@
{
"socket" : {
"address" : "localhost",
"port" : "4567"
}
}

View File

@@ -1,6 +0,0 @@
{
"socket" : {
"address" : "198.199.80.41",
"port" : "8081"
}
}

View File

@@ -44,3 +44,4 @@ var express = require('express'),
}(WebServer));
server.listen(config.port);
global.server = server;

View File

@@ -1,5 +1,5 @@
var SocketIO = require('socket.io').listen(8081);
var SocketIO = require('socket.io').listen(global.server);
(function(io) {