Python : command not found
julianqueiroz
TRIALOP
a year 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
ⓘ Deployment information is only viewable by project members and Railway employees.