22 lines
586 B
JSON
22 lines
586 B
JSON
{
|
|
"$schema": "https://railway.app/railway.schema.json",
|
|
"build": {
|
|
"builder": "nixpacks",
|
|
"buildCommand": "cd backend && pip install -r requirements.txt",
|
|
"watchPatterns": ["backend/**"]
|
|
},
|
|
"deploy": {
|
|
"startCommand": "cd backend && uvicorn api:app --host 0.0.0.0 --port $PORT",
|
|
"restartPolicyType": "on_failure",
|
|
"restartPolicyMaxRetries": 3
|
|
},
|
|
"environments": {
|
|
"production": {
|
|
"variables": {
|
|
"PYTHONPATH": "/app/backend",
|
|
"TRADINGAGENTS_API_HOST": "0.0.0.0",
|
|
"TRADINGAGENTS_API_PORT": "$PORT"
|
|
}
|
|
}
|
|
}
|
|
} |