keycloak-demo/index.js
2021-08-31 18:24:42 +08:00

14 lines
305 B
JavaScript

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();