auth init
This commit is contained in:
1 parent
faa2e70e08
commit
413aeedadf
29 files changed
+2854
-649
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import createServices from './src/services';
|
||||
import createLog from './src/log';
|
||||
|
||||
async function start() {
|
||||
const log = createLog();
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
log.debug('SIGTERM received, exiting');
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
const {
|
||||
prisma,
|
||||
pg,
|
||||
discogs,
|
||||
api,
|
||||
} = createServices(log);
|
||||
|
||||
await api.listen();
|
||||
}
|
||||
|
||||
start();
|
||||
Reference in new issue
Block a user