Compare commits

..

3 Commits

3 changed files with 11 additions and 9 deletions

View File

@ -4,4 +4,5 @@ DB_HOST=bla
DB_PORT=bla DB_PORT=bla
DB_USER=bla DB_USER=bla
DB_PASSWORD=bla DB_PASSWORD=bla
DB_NAME=bla DB_NAME=bla
NODE_ENV=production

View File

@ -8,15 +8,16 @@ dotenvSafe.config();
const PORT = process.env.APP_PORT || 4010; const PORT = process.env.APP_PORT || 4010;
const app = createExpressServer({ const app = createExpressServer({
controllers: [__dirname + "/controllers/*.ts"], controllers: [__dirname + "/controllers/*.ts"],
development: process.env.NODE_ENV === "production",
}); });
async function main() { async function main() {
await loaders(app); await loaders(app);
app.listen(PORT, () => { app.listen(PORT, () => {
consola.success( consola.success(
`⚡️[server]: Server is running at http://localhost:${PORT}` `⚡️[server]: Server is running at http://localhost:${PORT}`
); );
}); });
} }
main(); main();

View File

@ -22,5 +22,5 @@ export class Track {
@Column() @Column()
@IsInt() @IsInt()
@IsPositive() @IsPositive()
length: string; length: number;
} }