R
Railway14mo ago
Mazzanga

Hello, i have a Django app and i want to deploy using Unirn, but y have this error:

============== Using Nixpacks ============== context: 75d7645dc46f8909d7e9b5b5b8bb166f Nixpacks build failed ╔═══════════════════════════════ Nixpacks v1.5.1 ══════════════════════════════╗ ║ setup │ python39, postgresql, gcc ║ ║──────────────────────────────────────────────────────────────────────────────║ ║ install │ python -m venv /opt/venv && . /opt/venv/bin/activate && pip ║ ║ │ install -r requirements.txt ║ ║──────────────────────────────────────────────────────────────────────────────║ ║ start │ ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Error: No start command could be found this is my Procfile: web: sh -c 'python manage.py migrate && python manage.py collectstatic --noinput && gunicorn backend.Main.wsgi:application --bind 0.0.0.0:$PORT'
19 Replies
Percy
Percy14mo ago
Project ID: e3389f9c-eafd-4818-abb7-fa0f9d41099f
Mazzanga
Mazzanga14mo ago
e3389f9c-eafd-4818-abb7-fa0f9d41099f
Brody
Brody14mo ago
do you have a repo i could look at? @Mazzanga - still need help?
Mazzanga
Mazzanga14mo ago
Yes please
Brody
Brody14mo ago
repo?
Mazzanga
Mazzanga14mo ago
give em a sec
Mazzanga
Mazzanga14mo ago
GitHub
GitHub - Papotta/Gestion-sparta-gym
Contribute to Papotta/Gestion-sparta-gym development by creating an account on GitHub.
Brody
Brody14mo ago
procfile needs a capital P (procfile -> Procfile) runtime.txt is not supported on railway, we use a .python-version file, so you can just change the name
Mazzanga
Mazzanga14mo ago
in my code Procfile was with capital P but in github I dont know why not, im goin to traid dat now
Brody
Brody14mo ago
i would like to redact my previous statement, railway does support runtime.txt but the docs do not mention it, but the nixpacks code does indeed use a runtime.txt if present
Mazzanga
Mazzanga14mo ago
so i changeit to .python-version?
Brody
Brody14mo ago
read this again tldr: you are good to continue using runtime.txt
Mazzanga
Mazzanga14mo ago
Brody
Brody14mo ago
yeah looks good
Mazzanga
Mazzanga14mo ago
my Procfile is this, and try a los off metos in procfile but the server dont develop my porjec
Brody
Brody14mo ago
like i said before, the Procfile needs a capital P this does not have a capital P https://github.com/Papotta/Gestion-sparta-gym/blob/master/procfile
Mazzanga
Mazzanga14mo ago
It works, y delete that and do a new Procfile and work thanks soo much
Brody
Brody14mo ago
awsome, glad i could help
Mazzanga
Mazzanga14mo ago
👍