is-critter/server.js
Vincent Batts bde4828074
*: standard js lint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-09-28 21:38:09 -04:00

15 lines
416 B
JavaScript

const bole = require('bole')
const config = require('./config')
const app = require('./app')
const log = bole('server')
app.listen(config.express.port, config.express.ip, function (error) {
if (error) {
log.error('Unable to listen for connections', error)
process.exit(10)
}
log.info('express is listening on http://' +
config.express.ip + ':' + config.express.port)
})
// vim:set sts=2 sw=2 et: