Skip to content

Commit

Permalink
hotfix 502 gateway error on railway
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Oct 1, 2024
1 parent df5fda8 commit 639f813
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ExpressApp {

public startListening(): void {
log.info("Server connecting...");
const port = Number(process.env.PORT ?? env.SERVER_PORT);
const port = Number(process.env.PORT || env.SERVER_PORT);
this.#httpServer = this.expressApp.listen(port, "0.0.0.0", () => {
logBanner({
title: `[Express] ${env.SERVER_NAME} v${env.SERVER_VERSION}`,
Expand Down

0 comments on commit 639f813

Please sign in to comment.