File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments