I can't deploy a django project
lemon1964
TRIALOP

2 years ago

https://github.com/lemon1964/drf-movies

Build Logs

...

context: c6346ea60072f0a895058d06d59219b4

Nixpacks build failed

...

Nixpacks was unable to generate a build plan for this app.

View Deploy details

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

1 Replies

2 years ago

Try adding a railway.json file to your project -

{
    "$schema": "https://railway.app/railway.schema.json",
    "build": {
        "builder": "NIXPACKS"
    },
    "deploy": {
        "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn api.wsgi",
        "restartPolicyType": "ON_FAILURE",
        "restartPolicyMaxRetries": 10
    }
}

You will also want to be using Postgres as your sqlite database data will be lost on every deploy as you have it now.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...