File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ module.exports = function(controller) {
99 var webserver = express ( ) ;
1010 webserver . use ( bodyParser . json ( ) ) ;
1111 webserver . use ( bodyParser . urlencoded ( { extended : true } ) ) ;
12- webserver . use ( express . static ( 'public' ) ) ;
1312
1413 // import express middlewares that are present in /components/express_middleware
1514 var normalizedPath = require ( "path" ) . join ( __dirname , "express_middleware" ) ;
1615 require ( "fs" ) . readdirSync ( normalizedPath ) . forEach ( function ( file ) {
1716 require ( "./express_middleware/" + file ) ( webserver , controller ) ;
1817 } ) ;
1918
19+ webserver . use ( express . static ( 'public' ) ) ;
20+
2021
21- webserver . listen ( process . env . PORT || 3000 , process . env . HOSTNAME || null , function ( ) {
22+ webserver . listen ( process . env . PORT || 3000 , null , function ( ) {
2223
23- debug ( 'Express webserver configured and listening at ' ,
24- process . env . HOSTNAME || 'http://localhost/' + ':' + process . env . PORT || 3000 ) ;
24+ debug ( 'Express webserver configured and listening at http://localhost:' + process . env . PORT || 3000 ) ;
2525
2626 } ) ;
2727
You can’t perform that action at this time.
0 commit comments