Skip to content

Commit b77765b

Browse files
shadowshadow
shadow
authored and
shadow
committed
Fixes for heroku deployment
1 parent 55a19e2 commit b77765b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"test:watch": "jest --watch",
1919
"test:cov": "jest --coverage",
2020
"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"
21+
"test:e2e": "jest --config ./test/jest-e2e.json"
2322
},
2423
"dependencies": {
2524
"@nestjs/common": "^7.0.0",

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ async function bootstrap() {
1717
next();
1818
});
1919
//console.log(process.env);
20-
await app.listen(3000);
20+
await app.listen(process.env.PORT || 3000);
2121
}
2222
bootstrap();

0 commit comments

Comments
 (0)