Skip to content

Commit

Permalink
fixing startup errors for newest node and npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwoo committed Apr 9, 2012
1 parent b669820 commit 1903b5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
require.paths.unshift('.');

var http = require('http')
, fs = require('fs')
, io = require('socket.io')
, connect = require('connect')
, gzip = require('connect-gzip')
, nowww = require('connect-no-www')
, ams = require('ams')
, Game = require('game')
, Game = require('./game')
, server
, games = {}
, latestPublicGame
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1903b5f

Please sign in to comment.