Error: No start command could be found
naveenahTRIAL
6 months ago
Hi I am trying to deploy my django application in railway and I am new to raiiway, I am getting the above error. It is failing to deploy, please find below my requirements and railway.toml files entries below,
requirements.txt
Django>=5.0,<5.2
gunicorn
railway.toml
[build]
builder = "DOCKERFILE"
dockerfilePath = "./Dockerfile"
watchPatterns = [
"requirements.txt",
"src/**",
"railway.toml",
"Dockerfile",
]
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
6 months ago
Delete your railway.toml file and replace it with a railway.json file -
{
"$schema": "https://railway.app/railway.schema.json",
"deploy": {
"startCommand": "gunicorn mysite.wsgi"
}
}
Of course replacing mysite.wsgi
with what would be applicable for your app.