added packages into dockploy 5
This commit is contained in:
+3
-1
@@ -4,10 +4,12 @@ import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
import { json, urlencoded } from 'express';
|
||||
import { AppModule } from './app.module';
|
||||
import { applyPendingMigrations } from './apply-migrations';
|
||||
import { runBundledSeed } from './run-seed';
|
||||
|
||||
async function bootstrap() {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
await applyPendingMigrations();
|
||||
await runBundledSeed();
|
||||
}
|
||||
|
||||
const app = await NestFactory.create(AppModule);
|
||||
@@ -42,7 +44,7 @@ async function bootstrap() {
|
||||
const document = SwaggerModule.createDocument(app, swaggerConfig);
|
||||
SwaggerModule.setup(`${globalPrefix}/docs`, app, document);
|
||||
|
||||
const port = process.env.PORT ?? 3000;
|
||||
const port = Number(process.env.PORT) || 3000;
|
||||
await app.listen(port);
|
||||
console.log(
|
||||
`Fabric Trade API listening on http://localhost:${port}/${globalPrefix}`,
|
||||
|
||||
Reference in New Issue
Block a user