This repository has been archived on 2023-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
auth/lib/server/index.ts
mifi 42f091489e
Some checks failed
continuous-integration/drone/push Build is failing
Who knows what happens next...
2023-05-05 18:14:20 -04:00

12 lines
287 B
TypeScript

import app from './app';
import { connection } from '../db';
import { PORT } from '../constants/env';
connection.then(
() => {
app.listen(PORT);
console.log('LISTENING', process.env);
},
(err) => console.error('SERVER ERROR!', { err, env: process.env }),
);