10 months ago
Quick Fix Options:
Option 1: Tell Railway What To Build (Easiest)
Add a railway.json file to your root directory:
{
"build": {
"builder": "nixpacks"
},
"deploy": {
"startCommand": "cd backend && python -m uvicorn server:app --host 0.0.0.0 --port $PORT"
}
}Attachments
3 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 📚 Configuration File
- 🧵 Deployment from local with railway up fails
- 🧵 Vite + React with Caddy
- 🧵 Deployment Auto-Start Issue - Build Succeeds but No Logs Until Manual Restart
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
It failed again
10 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open chandrika • 10 months ago
10 months ago
Hey, judging by the screenshot you are trying to deploy two services using an isolated monorepo. Try deploying a service with the root directory set to /frontend and another service with the root directory set to /backend.