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
Project ID:
e3389f9c-eafd-4818-abb7-fa0f9d41099f
e3389f9c-eafd-4818-abb7-fa0f9d41099f
do you have a repo i could look at?
@Mazzanga - still need help?
Yes please
repo?
give em a sec
GitHub
GitHub - Papotta/Gestion-sparta-gym
Contribute to Papotta/Gestion-sparta-gym development by creating an account on GitHub.
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 namein my code Procfile was with capital P but in github I dont know why not, im goin to traid dat now
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 presentso i changeit to .python-version?
read this again
tldr: you are good to continue using runtime.txt
yeah looks good
my Procfile is this, and try a los off metos in procfile but the server dont develop my porjec
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
It works, y delete that and do a new Procfile and work
thanks soo much
awsome, glad i could help
👍