Skip to content

Commit 22169ef

Browse files
committed
fix: use Railway PORT in app startup
Run via main.py and honor Railway PORT env to avoid Procfile env expansion issues.
1 parent b1f7b5c commit 22169ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: uvicorn main:app --host 0.0.0.0 --port $PORT
1+
web: python main.py
22

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ def get_mobile_css() -> str:
18981898

18991899
if __name__ == "__main__":
19001900
import uvicorn
1901-
port = int(os.getenv("APP_PORT", 8000))
1901+
port = int(os.getenv("PORT", os.getenv("APP_PORT", 8000)))
19021902
host = os.getenv("APP_HOST", "0.0.0.0")
19031903

19041904
print("OMI GitHub Issues Integration (Chat Tools)")

0 commit comments

Comments
 (0)