keycloak-demo/index.js

14 lines
305 B
JavaScript
Raw Normal View History

2021-08-31 10:24:42 +00:00
require('dotenv').config();
const config = require('src/config/index.js');
const app = require('./server.js');
async function runServer() {
const server = app.listen(config.server.port, () => {
// @ts-ignore
console.info(`server start on port ${server.address().port}`);
});
}
runServer();