Linty fresh and pretty
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-02 20:54:14 -04:00
parent f105ce537f
commit 5fba4c6643
4 changed files with 24 additions and 14 deletions

View File

@@ -2,10 +2,11 @@ import dotenv from 'dotenv';
import app from './app';
import { connection } from './database/database.connection';
import { PORT as DEFAULT_PORT } from './constants/defaults';
dotenv.config();
const PORT: number = Number(process.env.PORT) || 9000;
const PORT: number = Number(process.env.PORT) || DEFAULT_PORT;
connection.then(
() => app.listen(PORT),