Skip to content

Commit 8f07c8f

Browse files
committed
fix sendFile on routes
1 parent 5c40db4 commit 8f07c8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: app/templates/_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"main": "server/app.js",
55
"dependencies": {
6-
"express": "~4.0.0",
6+
"express": "~4.9.0",
77
"morgan": "~1.0.0",
88
"body-parser": "~1.5.0",
99
"method-override": "~1.0.0",

Diff for: app/templates/server/config/express.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ module.exports = function(app) {
4545
if ('production' === env) {
4646
app.use(favicon(path.join(config.root, 'public', 'favicon.ico')));
4747
app.use(express.static(path.join(config.root, 'public')));
48-
app.set('appPath', config.root + '/public');
48+
app.set('appPath', path.join(config.root, 'public'));
4949
app.use(morgan('dev'));
5050
}
5151

5252
if ('development' === env || 'test' === env) {
5353
app.use(require('connect-livereload')());
5454
app.use(express.static(path.join(config.root, '.tmp')));
5555
app.use(express.static(path.join(config.root, 'client')));
56-
app.set('appPath', 'client');
56+
app.set('appPath', path.join(config.root, 'client'));
5757
app.use(morgan('dev'));
5858
app.use(errorHandler()); // Error handler - has to be last
5959
}

0 commit comments

Comments
 (0)