mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-08 08:07:41 -06:00
Switch railway.json startCommand to module serve, use PORT variable
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import structlog
|
import structlog
|
||||||
|
|
||||||
@@ -17,6 +18,7 @@ def main(*args):
|
|||||||
"linkpulse.app:app",
|
"linkpulse.app:app",
|
||||||
reload=True,
|
reload=True,
|
||||||
host="0.0.0.0",
|
host="0.0.0.0",
|
||||||
|
port=int(os.getenv("PORT", "8000")),
|
||||||
log_config={
|
log_config={
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"disable_existing_loggers": False,
|
"disable_existing_loggers": False,
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
"builder": "NIXPACKS"
|
"builder": "NIXPACKS"
|
||||||
},
|
},
|
||||||
"deploy": {
|
"deploy": {
|
||||||
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\""
|
"startCommand": "python3 -m linkpulse serve"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user