File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11node_modules
22.DS_Store
3+ src /public /css /* .css
Original file line number Diff line number Diff line change @@ -6,11 +6,16 @@ port = process.env.PORT || 3000
66path = require 'path'
77stylus = require 'stylus'
88
9- app . configure 'production ' , ( ) - >
9+ app . configure 'development ' , ( ) - >
1010 app . use ( express . logger ( { format : ':method :url' } ) )
1111 app . use ( express . static ( path . join ( __dirname , 'src/public' ) ) )
1212 app . use ( stylus . middleware ( { src : path . join ( __dirname , 'src/public' ) } ) )
1313
14+ app . configure 'production' , ( ) - >
15+ app . use ( express . logger ( { format : ':method :url' } ) )
16+ app . use ( express . static ( path . join ( __dirname , 'src/public' ) ) )
17+ app . use ( stylus . middleware ( { src : path . join ( __dirname , 'src/public' ) , compress : true } ) )
18+
1419app . set 'views' , path . join ( __dirname , '/src/views' )
1520app . set 'view engine' , 'jade'
1621
You can’t perform that action at this time.
0 commit comments