can i set my python version for my deployment
Anonymous
TRIALOP

2 years ago

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"

}

}

2 Replies

Anonymous
TRIALOP

2 years ago

N/A


2 years 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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...