2023-09-29 01:31:05 +00:00
|
|
|
const bole = require('bole')
|
|
|
|
const config = require('./config')
|
|
|
|
const app = require('./app')
|
|
|
|
const log = bole('server')
|
2023-09-22 20:39:37 +00:00
|
|
|
|
2023-09-29 01:31:05 +00:00
|
|
|
app.listen(config.express.port, config.express.ip, function (error) {
|
2023-09-22 20:39:37 +00:00
|
|
|
if (error) {
|
2023-09-29 01:31:05 +00:00
|
|
|
log.error('Unable to listen for connections', error)
|
|
|
|
process.exit(10)
|
2023-09-22 20:39:37 +00:00
|
|
|
}
|
|
|
|
log.info('express is listening on http://' +
|
|
|
|
config.express.ip + ':' + config.express.port)
|
2023-09-29 01:31:05 +00:00
|
|
|
})
|
2023-09-16 00:31:47 +00:00
|
|
|
|
|
|
|
// vim:set sts=2 sw=2 et:
|