diff --git a/bin/www b/bin/www index 1cc2115..782699f 100644 --- a/bin/www +++ b/bin/www @@ -12,8 +12,8 @@ var http = require('http'); * Get port from environment and store in Express. */ -var port = normalizePort(process.env.PORT || '3000'); -app.set('port', port); +// var port = normalizePort(process.env.PORT || '3000'); +// app.set('port', port); /** * Create HTTP server. @@ -25,7 +25,7 @@ var server = http.createServer(app); * Listen on provided port, on all network interfaces. */ -server.listen(port); +//server.listen(port); server.on('error', onError); server.on('listening', onListening); @@ -33,21 +33,21 @@ server.on('listening', onListening); * Normalize a port into a number, string, or false. */ -function normalizePort(val) { - var port = parseInt(val, 10); +// function normalizePort(val) { +// var port = parseInt(val, 10); - if (isNaN(port)) { - // named pipe - return val; - } +// if (isNaN(port)) { +// // named pipe +// return val; +// } - if (port >= 0) { - // port number - return port; - } +// if (port >= 0) { +// // port number +// return port; +// } - return false; -} +// return false; +// } /** * Event listener for HTTP server "error" event.