Error: No start command could be found
naveenah
PROOP

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

]

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...