Compare commits
No commits in common. "56ee91e762e2ae9f098f4c9c2d34061d40c793c1" and "f7d7f5e75f9693f68ed0cf387eb402c185bc1e1c" have entirely different histories.
56ee91e762
...
f7d7f5e75f
@ -4,5 +4,4 @@ DB_HOST=bla
|
||||
DB_PORT=bla
|
||||
DB_USER=bla
|
||||
DB_PASSWORD=bla
|
||||
DB_NAME=bla
|
||||
NODE_ENV=production
|
||||
DB_NAME=bla
|
15
src/app.ts
15
src/app.ts
@ -8,16 +8,15 @@ dotenvSafe.config();
|
||||
const PORT = process.env.APP_PORT || 4010;
|
||||
|
||||
const app = createExpressServer({
|
||||
controllers: [__dirname + "/controllers/*.ts"],
|
||||
development: process.env.NODE_ENV === "production",
|
||||
controllers: [__dirname + "/controllers/*.ts"],
|
||||
});
|
||||
|
||||
async function main() {
|
||||
await loaders(app);
|
||||
app.listen(PORT, () => {
|
||||
consola.success(
|
||||
`⚡️[server]: Server is running at http://localhost:${PORT}`
|
||||
);
|
||||
});
|
||||
await loaders(app);
|
||||
app.listen(PORT, () => {
|
||||
consola.success(
|
||||
`⚡️[server]: Server is running at http://localhost:${PORT}`
|
||||
);
|
||||
});
|
||||
}
|
||||
main();
|
||||
|
@ -22,5 +22,5 @@ export class Track {
|
||||
@Column()
|
||||
@IsInt()
|
||||
@IsPositive()
|
||||
length: number;
|
||||
length: string;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user