Python : command not found
julianqueiroz
TRIALOP

2 years ago

trying to deploy my django app in railway. I first followed the steps by creating a Procfile and runtime.txt. I got the error "gunicorn not found".

Ok, then i changed the method to railway.json.

This is my railway.json:

{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn heartly_api.wsgi --forwarded-allow-ips '*'", "restartPolicyType": "ONFAILURE", "restartPolicyMaxRetries": 10 } }

and i'm getting

/bin/bash:

line 1: python command not found.

PS: gunicorn is already installed. I can see it in requirements.txt

View Deploy details

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

1 Replies

2 years ago

Hello, the linked project only contains a Postgres database.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...