hotfix: listen on 0.0.0.0 IPv4 interface binding

I don't know sometimes.
This commit is contained in:
2024-11-01 19:34:11 -05:00
parent 24a3ae5f24
commit e2a47c1868
+1 -3
View File
@@ -36,9 +36,7 @@ def main(*args):
run( run(
"linkpulse.app:app", "linkpulse.app:app",
reload=is_development, reload=is_development,
# Both options are special IP addresses that allow the server to listen on all network interfaces. One is for IPv4, the other for IPv6. host="0.0.0.0",
# Railway's private networking requires IPv6, so we must use that in production.
host="0.0.0.0" if is_development else "::",
port=int(os.getenv("PORT", "8000")), port=int(os.getenv("PORT", "8000")),
log_config={ log_config={
"version": 1, "version": 1,