Skip to content

Commit

Permalink
Configurable Backend Port
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanco committed Feb 5, 2024
1 parent c926340 commit 6495a17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/claim-backend/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BACKEND_PORT=3000
DB_PORT=5432
DB_DATABASE=claim-backend
DB_USERNAME=claim-backend
Expand Down
1 change: 1 addition & 0 deletions packages/claim-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This library supplies leaf details to frontend. It also stores partial signature

| param | Description | Required |
| ---------------- | -------------------------------------------------------- | -------- |
| BACKEND_PORT | Port used by backend (Default: 3000) | false |
| DB_PORT | Port used by PostSQL DB (Default: 5432) | false |
| DB_DATABASE | Name of Database of PostSQL DB (Default: claim-backend) | false |
| DB_USERNAME | Username of PostSQL DB (Default: claim-backend) | false |
Expand Down
2 changes: 1 addition & 1 deletion packages/claim-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { submitMultisig } from './controllers/submit-multisig';
import { checkEligibility } from './controllers/check-eligibility';
dotenv.config();

const PORT = process.env.PORT || 3000;
const PORT = process.env.BACKEND_PORT || 3000;
const server = new JSONRPCServer();

void (async () => {
Expand Down

0 comments on commit 6495a17

Please sign in to comment.