Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
server.listen(soya.config.port, err => {
if (err) {
throw err;
}
// eslint-disable-next-line no-console
console.log(`> Ready on http://localhost:${soya.config.port}`);
});
})
.then(() => {
const server = express();
server.use(createRouter(app));
server.listen(soya.config.port, err => {
if (err) {
throw err;
}
// eslint-disable-next-line no-console
console.log(`> Ready on http://localhost:${soya.config.port}`);
});
})
.catch(ex => {