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