mirror of https://github.com/JoeBiellik/paste
Add host address configuration
parent
2e4f714ad2
commit
96499fd793
@ -1,7 +1,4 @@
|
|||||||
const app = require('./app');
|
const app = require('./app');
|
||||||
const config = require('config');
|
const config = require('config');
|
||||||
const util = require('util');
|
|
||||||
|
|
||||||
module.exports = app.listen(process.env.PORT || config.port || 3000, function() {
|
module.exports = app.listen(process.env.PORT || config.port, process.env.HOST || config.host);
|
||||||
util.log('Server started: http://localhost:%s/', this.address().port);
|
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue