Skip to content

Commit

Permalink
Fix: Apply PORT dotenv for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Hoplin committed Jan 15, 2024
1 parent f4c14fb commit aab9444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ JWT_SECRET="SECRET"
JUDGE_SERVER_ENDPOINT=""

ENV=""
PORT=""

# AWS
AWS_REGION=""
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ async function bootstrap() {
explorer: true,
});

await app.listen(3000);
await app.listen(process.env.PORT || 3000);
}
bootstrap();

0 comments on commit aab9444

Please sign in to comment.