This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user