mirror of https://github.com/pelias/api.git
Stephen Hess
7 years ago
1 changed files with 5 additions and 4 deletions
@ -1,7 +1,8 @@ |
|||||||
|
|
||||||
var app = require('./app'), |
const app = require('./app'), |
||||||
port = ( process.env.PORT || 3100 ); |
port = ( process.env.PORT || 3100 ), |
||||||
|
host = ( process.env.HOST || 'localhost' ); |
||||||
|
|
||||||
/** run server on the default setup (single core) **/ |
/** run server on the default setup (single core) **/ |
||||||
console.log( 'pelias is now running on port ' + port ); |
console.log( `pelias is now running on ${host}:${port}` ); |
||||||
app.listen( port ); |
app.listen( port, host ); |
||||||
|
Loading…
Reference in new issue