We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a19e2 commit b77765bCopy full SHA for b77765b
package.json
@@ -18,8 +18,7 @@
18
"test:watch": "jest --watch",
19
"test:cov": "jest --coverage",
20
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
21
- "test:e2e": "jest --config ./test/jest-e2e.json",
22
- "postinstall": "nest build"
+ "test:e2e": "jest --config ./test/jest-e2e.json"
23
},
24
"dependencies": {
25
"@nestjs/common": "^7.0.0",
src/main.ts
@@ -17,6 +17,6 @@ async function bootstrap() {
17
next();
});
//console.log(process.env);
- await app.listen(3000);
+ await app.listen(process.env.PORT || 3000);
}
bootstrap();
0 commit comments