Who knows what happens next...
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-05 18:14:20 -04:00
parent 995dd9a015
commit 42f091489e
11 changed files with 100 additions and 31 deletions

View File

@@ -1,12 +1,11 @@
import dotenv from 'dotenv';
import app from './app';
import { connection } from '../db';
import { PORT } from '../constants/env';
dotenv.config();
connection.then(
() => app.listen(PORT),
(err) => console.error('ERROR!', err),
() => {
app.listen(PORT);
console.log('LISTENING', process.env);
},
(err) => console.error('SERVER ERROR!', { err, env: process.env }),
);