Browse Source

use host from HOST environmental variable

pull/1031/head
Stephen Hess 7 years ago
parent
commit
cb8f4017e5
  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