Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion database_worker/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
PGUSER = os.environ.get("PGUSER", "planexe")
PGPASSWORD = os.environ.get("PGPASSWORD", "planexe")
API_KEY = os.environ.get("PLANEXE_DATABASE_WORKER_API_KEY", "")
PORT = int(os.environ.get("PLANEXE_DATABASE_WORKER_PORT", "8002"))
# Railway injects PORT; fall back to PLANEXE_DATABASE_WORKER_PORT for Docker Compose.
PORT = int(os.environ.get("PORT") or os.environ.get("PLANEXE_DATABASE_WORKER_PORT", "8002"))

# zstd typically compresses better and faster than gzip, so it's preferred.
# pg_dump >= 16 supports -Z zstd natively; also requires the zstd binary.
Expand Down
Loading