mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 15:15:34 -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 structlog
|
||||
|
||||
@@ -17,6 +18,7 @@ def main(*args):
|
||||
"linkpulse.app:app",
|
||||
reload=True,
|
||||
host="0.0.0.0",
|
||||
port=int(os.getenv("PORT", "8000")),
|
||||
log_config={
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"builder": "NIXPACKS"
|
||||
},
|
||||
"deploy": {
|
||||
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\""
|
||||
"startCommand": "python3 -m linkpulse serve"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user