say server listening message in console
This commit is contained in:
parent
5025e7dfcc
commit
de6a1b22b7
1 changed files with 4 additions and 2 deletions
|
@ -27,8 +27,10 @@ var app = express();
|
|||
app.use(express.static(__dirname + '/client'));
|
||||
|
||||
var server = require('http').Server(app);
|
||||
server.listen(process.argv[2] || 8080);
|
||||
//app.listen(process.argv[2] || 8080);
|
||||
var port = process.argv[2] || 8080;
|
||||
server.listen(port);
|
||||
|
||||
console.log('Server running at http://127.0.0.1:' + port + '/');
|
||||
|
||||
/**************
|
||||
ROUTES
|
||||
|
|
Loading…
Add table
Reference in a new issue