From 1903b5f47b08a4bd6c2fcb14b176419b379084dc Mon Sep 17 00:00:00 2001 From: Vincent Woo Date: Mon, 9 Apr 2012 14:13:50 -0700 Subject: [PATCH] fixing startup errors for newest node and npm packages --- server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 89d8c3a..5bc3171 100644 --- a/server.js +++ b/server.js @@ -1,5 +1,3 @@ -require.paths.unshift('.'); - var http = require('http') , fs = require('fs') , io = require('socket.io') @@ -7,7 +5,7 @@ var http = require('http') , gzip = require('connect-gzip') , nowww = require('connect-no-www') , ams = require('ams') - , Game = require('game') + , Game = require('./game') , server , games = {} , latestPublicGame @@ -48,6 +46,7 @@ server = connect.createServer( connect.logger(':status :remote-addr :url in :response-timems') , nowww() , niceifyURL + , connect.static('public') , gzip.staticGzip(publicDir, { matchType: /text|javascript/ , maxAge: process.env.NODE_ENV === 'development' ? 0 : 86400000