Skip to content

Commit

Permalink
change default to 4000 to avoid clashing with stats-server and more d…
Browse files Browse the repository at this point in the history
…escriptive port env (#43)

change default to 4000 to avoid clashing with stats-server
more descriptive port env
  • Loading branch information
wanwiset25 authored Dec 22, 2023
1 parent bbda36b commit 2960b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .example.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Application Port - KOA server listens on this port (default 3000).
PORT=3000
# Application Port - KOA server listens on this port (default 4000).
RELAYER_PORT=4000

# Environment
NODE_ENV=development
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getZeroConfig = (): XdcZeroConfig => {
};

const config: Config = {
port: +(process.env.PORT || 3000),
port: +(process.env.RELAYER_PORT || 4000),
devMode: devMode,
cronJob: {
liteJobExpression: "0 */2 * * * *", // every 2min
Expand Down

0 comments on commit 2960b6f

Please sign in to comment.