File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0" ,
4
4
"main" : " server/app.js" ,
5
5
"dependencies" : {
6
- "express" : " ~4.0 .0" ,
6
+ "express" : " ~4.9 .0" ,
7
7
"morgan" : " ~1.0.0" ,
8
8
"body-parser" : " ~1.5.0" ,
9
9
"method-override" : " ~1.0.0" ,
Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ module.exports = function(app) {
45
45
if ( 'production' === env ) {
46
46
app . use ( favicon ( path . join ( config . root , 'public' , 'favicon.ico' ) ) ) ;
47
47
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') ) ;
49
49
app . use ( morgan ( 'dev' ) ) ;
50
50
}
51
51
52
52
if ( 'development' === env || 'test' === env ) {
53
53
app . use ( require ( 'connect-livereload' ) ( ) ) ;
54
54
app . use ( express . static ( path . join ( config . root , '.tmp' ) ) ) ;
55
55
app . use ( express . static ( path . join ( config . root , 'client' ) ) ) ;
56
- app . set ( 'appPath' , 'client' ) ;
56
+ app . set ( 'appPath' , path . join ( config . root , 'client' ) ) ;
57
57
app . use ( morgan ( 'dev' ) ) ;
58
58
app . use ( errorHandler ( ) ) ; // Error handler - has to be last
59
59
}
You can’t perform that action at this time.
0 commit comments