Skip to content

Commit 8303822

Browse files
Fix Railway Nixpacks Python path
1 parent 7c321a2 commit 8303822

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nixpacks.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ nixPkgs = ["python312Full"]
44
# Use the default Python install behavior but ensure we use the right requirements file
55
[phases.install]
66
cmds = [
7-
"python -m pip install --upgrade pip",
8-
"python -m pip install -r backend/requirements.txt"
7+
"/opt/venv/bin/python -m pip install --upgrade pip",
8+
"/opt/venv/bin/python -m pip install -r backend/requirements.txt"
99
]
1010

1111

@@ -17,7 +17,7 @@ cmds = [
1717

1818
[start]
1919
# Run directly from the root directory since we copied the files there
20-
cmd = "uvicorn main:app --host 0.0.0.0 --port $PORT"
20+
cmd = "/opt/venv/bin/uvicorn main:app --host 0.0.0.0 --port $PORT"
2121

2222
[variables]
2323
PYTHONPATH = "/app"

0 commit comments

Comments
 (0)