R
Railway7mo ago
iroh

can i set my python version for my deployment

Hello folks, I want to deploy a fastapi project in railway with python 3.12 any hints of help? my current railway.json is the next one: { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "uvicorn main:app --host 8000" } }
Solution:
nixpacks only supports python 3.11, you can specify that by adding a runtime.txt file with just 3.11 in it. additionally, you would want to use this start command instead - uvicorn main:app --host 0.0.0.0 --port $PORT...
Jump to solution
3 Replies
Percy
Percy7mo ago
Project ID: N/A
iroh
irohOP7mo ago
N/A
Solution
Brody
Brody7mo ago
nixpacks only supports python 3.11, you can specify that by adding a runtime.txt file with just 3.11 in it. additionally, you would want to use this start command instead - uvicorn main:app --host 0.0.0.0 --port $PORT
Want results from more Discord servers?
Add your server