|
|
@ -1,4 +1,4 @@ |
|
|
|
|
|
|
|
const logger = require('pelias-logger').get('api'); |
|
|
|
const app = require('./app'), |
|
|
|
const app = require('./app'), |
|
|
|
port = ( process.env.PORT || 3100 ), |
|
|
|
port = ( process.env.PORT || 3100 ), |
|
|
|
host = ( process.env.HOST || undefined ); |
|
|
|
host = ( process.env.HOST || undefined ); |
|
|
@ -6,5 +6,5 @@ const app = require('./app'), |
|
|
|
const server = app.listen( port, host, () => { |
|
|
|
const server = app.listen( port, host, () => { |
|
|
|
// ask server for the actual address and port its listening on
|
|
|
|
// ask server for the actual address and port its listening on
|
|
|
|
const listenAddress = server.address(); |
|
|
|
const listenAddress = server.address(); |
|
|
|
console.log( `pelias is now running on ${listenAddress.address}:${listenAddress.port}` ); |
|
|
|
logger.info( `pelias is now running on ${listenAddress.address}:${listenAddress.port}` ); |
|
|
|
}); |
|
|
|
}); |
|
|
|