is-critter/express/server.js
Vincent Batts 94eac4f89b
All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 7s
*: beginning unittest setup
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2023-09-26 12:38:11 -05:00

15 lines
422 B
JavaScript

const config = require('./config');
const app = require('./app');
const bole = require('bole');
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: