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