a year ago
My project looks like this
silkroute/
├── .railway/
│ ├── client-service.json
│ ├── server-service.json
├── client/
├── server/
└── …
My client/ code has a package.json file. My server/ code is a python flask app. Let's start with the server/ deployment.
Here's my .railway/server-service.json script:
"name": "server",
"source": {
"type": "directory",
"path": "server"
},
"build": "pip install -r requirements.txt",
"start": "python app.py"
}I'm getting the no start command error. What am I doing wrong?
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
> Here's my .railway/server-service.json script ...
That location, filename, and syntax are not valid, can you help me to understand how you came up with that? AI?
You will need to place a railway.json file in the server folder, similar to this -
{
"$schema": "https://railway.app/railway.schema.json",
"deploy": {
"startCommand": "gunicorn mysite.wsgi"
}
}As for the client, it's likely going to need some changes to make it production ready.. what kind of app is it?