-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
25 lines (22 loc) · 2.23 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const { log } = require('@spaship/common/lib/logging/pino');
const app = require('./app');
const { config } = require('./config');
const pkgJSON = require('./package.json');
console.info(`
███████╗██████╗ █████╗ ███████╗██╗ ██╗██╗██████╗ ██████╗ ██╗ ██╗███████╗███████╗██╗ ███████╗
██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██║██║██╔══██╗ ██╔══██╗██║ ██║╚══███╔╝╚══███╔╝██║ ██╔════╝
███████╗██████╔╝███████║███████╗███████║██║██████╔╝ ██████╔╝██║ ██║ ███╔╝ ███╔╝ ██║ █████╗
╚════██║██╔═══╝ ██╔══██║╚════██║██╔══██║██║██╔═══╝ ██╔═══╝ ██║ ██║ ███╔╝ ███╔╝ ██║ ██╔══╝
███████║██║ ██║ ██║███████║██║ ██║██║██║ ██║ ╚██████╔╝███████╗███████╗███████╗███████╗
╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝╚══════╝
`);
if (config.env === 'production') {
log.info(`Starting SPAship Git Broker ${pkgJSON.version} running on production`);
} else {
log.info(`Starting SPAship Git Broker ${pkgJSON.version} running on ${config.env}`);
}
(async () => {
app.listen(config.port, () => {
log.info(`Server started for SPAship puzzle on port ${config.port}`);
});
})();