Browse Source

Merge pull request #1031 from pelias/enable-config-of-listen-address

use host from HOST environmental variable
pull/1032/head
Stephen Hess 7 years ago committed by GitHub
parent
commit
1a3a983a84
  1. 9
      index.js

9
index.js

@ -1,7 +1,8 @@
var app = require('./app'),
port = ( process.env.PORT || 3100 );
const app = require('./app'),
port = ( process.env.PORT || 3100 ),
host = ( process.env.HOST || 'localhost' );
/** run server on the default setup (single core) **/
console.log( 'pelias is now running on port ' + port );
app.listen( port );
console.log( `pelias is now running on ${host}:${port}` );
app.listen( port, host );

Loading…
Cancel
Save