“Bereitstellung von NestJS App Engine” Code-Antworten

Bereitstellung von NestJS App Engine

async function bootstrap() {
   const app = await NestFactory.create(AppModule);
-  await app.listen(3000);
+  const PORT = Number(process.env.PORT) || 8080;
+  await app.listen(PORT);
 }
 bootstrap();
Jad Harmoush

Bereitstellung von NestJS App Engine

{
    ...
+  "main": "dist/main.js",
   "scripts": {
...
-    "build": "nest build",
+    "build": "tsc -p tsconfig.build.json",
+    "gcp-build": "npm run build",
...
-    "start": "nest start",
+    "start": "node ./dist/main.js",    
   }
...
}
Jad Harmoush

Ähnliche Antworten wie “Bereitstellung von NestJS App Engine”

Fragen ähnlich wie “Bereitstellung von NestJS App Engine”

Weitere verwandte Antworten zu “Bereitstellung von NestJS App Engine” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen