Skip to content

Commit e71dd0c

Browse files
author
Keegan Jorgensen
committed
Removed differences between prod and dev
1 parent 663fa6d commit e71dd0c

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"dependencies": {
1616
"express": "2.5.10",
1717
"ejs": "0.7.1",
18-
"gzippo": "0.1.7",
1918
"socket.io": "~0.9.13",
2019
"underscore": "1.3.3"
2120
},

server.js

+2-28
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,13 @@ var lobbyClass = require('./lib/lobby.js');
1515
var config = require('./config.js')[env];
1616
var path = require('path');
1717

18-
var gzippo = require('gzippo');
19-
2018
var lobby = new lobbyClass.Lobby(io);
2119

2220
var statsConnectionCount = 0;
2321
var statsDisconnectCount = 0;
2422
var statsSocketCount = 0;
2523
var statsSocketMessagesReceived = 0;
2624

27-
// Configuration
28-
29-
// Set the CDN options
30-
// var options = {
31-
// publicDir : path.join(__dirname, 'app')
32-
// , viewsDir : path.join(__dirname, 'app')
33-
// , domain : 'dkb4nwmyziz71.cloudfront.net'
34-
// , bucket : 'hatchetapp'
35-
// , key : 'AKIAIS3XCFXFKWXGKK7Q'
36-
// , secret : '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'
37-
// , hostname : config.hostname
38-
// , port : config.port
39-
// , ssl : false
40-
// , production : config.packAssets
41-
// };
42-
43-
// Initialize the CDN magic
44-
//var CDN = require('express-cdn')(app, options);
45-
4625
app.configure(function(){
4726
app.set('views', __dirname + '/app');
4827
app.set('view engine', 'ejs');
@@ -61,15 +40,10 @@ app.configure('development', function(){
6140
});
6241

6342
app.configure('production', function(){
64-
var oneDay = 86400000;
65-
// app.use(assetsManagerMiddleware);
66-
app.use(gzippo.staticGzip(__dirname + '/app'));
67-
app.use(express.errorHandler());
43+
app.use(express.static(__dirname + '/app'));
44+
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
6845
});
6946

70-
// Add the dynamic view helper
71-
//app.dynamicHelpers({ CDN: CDN });
72-
7347
app.get('/', function(req, res) {
7448
res.render('index.ejs');
7549
});

0 commit comments

Comments
 (0)