Skip to content

Commit

Permalink
configurable server port
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp committed May 25, 2024
1 parent c791969 commit 0b041b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ COPY --from=builder /app /app
# Bundle app source
COPY . .

# Your app binds to port 8080 so you'll use the EXPOSE instruction to have it mapped by the docker daemon
EXPOSE 8080

ENV ACCOUNT_ADDRESS=0x0
ENV ACCOUNT_PK=0x0
ENV STORAGE_DIR="/app/storage"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const queueHandler = fork('./src/QueueHandler/index.ts', [], options);


const app = express();
const port: number = 3001;
const port: number = parseInt(process.env["SERVER_PORT"]) ?? 3000;

// Serve static files from the /static directory
app.use('/', express.static(path.join(__dirname, 'static')));
Expand Down

0 comments on commit 0b041b8

Please sign in to comment.