Skip to content

Commit 1c0dcd7

Browse files
committed
Fix express configuration for demos
1 parent 7b9dba1 commit 1c0dcd7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"grunt-contrib-jshint": "0.10.0",
3232
"grunt-contrib-clean": "0.6.0",
3333
"load-grunt-tasks": "0.6.0",
34-
"grunt-express": "1.4.1",
35-
"express": "4.7.2"
34+
"express": "~3.4.8",
35+
"grunt-express": "~1.2.1"
3636
}
3737
}

server.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ app.configure(function () {
2727
app.use(express.bodyParser());
2828
app.use(express.methodOverride());
2929
app.use(express.errorHandler());
30-
app.use(express.static(path.join(__dirname, 'demo')));
30+
app.use(express.static(__dirname));
3131
app.use(app.router);
3232

33-
console.log(path.join(__dirname, 'demo'));
34-
3533
app.get('/api/demo-config', getDemoConfig);
3634
app.get('/api/demo-config-2', getDemoConfig);
3735
});

0 commit comments

Comments
 (0)