failing to deploy django project from github

tamieclay
HOBBY

2 years ago

my deploy of django project keeps failing with this message:

[Region: us-west1]

==============

Using Nixpacks

==============

context: c3ce11af4c5b1a3bb05a5bc47f255570

Nixpacks build failed

╔══════════════════════════════ Nixpacks v1.20.0 ══════════════════════════════╗

║ setup │ python38, postgresql, gcc ║

║──────────────────────────────────────────────────────────────────────────────║

║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║

║ │ && pip install -r requirements.txt ║

║──────────────────────────────────────────────────────────────────────────────║

║ start │ ║

╚══════════════════════════════════════════════════════════════════════════════╝

Error: No start command could be found

i have installed gunicorn and put a Profile in my root folder where my project is and also puta runtime.text but still no change

Solved

15 Replies

2 years ago

I don't know if it was a typo or not, but the filename is Procfile with a capital P


dantalion-py
TRIAL

2 years ago

I also had that problem and fixed it by running the command (python manage.py runserver).


2 years ago

You would never want to use runserver on Railway, that starts a development server and you will pay heavily for that.

You need to be using gunicorn.


Status changed to Solved Railway over 1 year ago


eamateli
HOBBY

a year ago

I am facing the same issue Deployment Failed - Error: No start command could be found Procfile

web: gunicorn store.wsgi --log-file
web: gunicorn cart.wsgi --log-file
web: gunicorn payment.wsgi --log-file
web: python manage.py migrate && gunicorn store.wsg
web: python manage.py migrate && gunicorn cart.wsg
web: python manage.py migrate && gunicorn payment.wsg

requirements.txt

asgiref==3.8.1
Brotli==1.1.0
cffi==1.16.0
cssselect2==0.7.0
Django==5.0.4
fonttools==4.53.0
gunicorn==22.0.0
html5lib==1.1
packaging==24.1
pillow==10.3.0
psycopg2==2.9.9
pycparser==2.22
pydyf==0.10.0
pyphen==0.15.0
python-dotenv==1.0.1
six==1.16.0
sqlparse==0.5.0
tinycss2==1.3.0
typing_extensions==4.12.2
tzdata==2024.1
webencodings==0.5.1
whitenoise==6.6.0
zopfli==0.2.3

runtime.txt python 3.12.3 I've done everything correctly so I don't know what more to do guys. Can you help ?


a year ago

Is your Procfile named correctly with a capital P?


eamateli
HOBBY

a year ago

Yes !


a year ago

Check your service settings, are you on the V2 builder? if so, switch it off.


eamateli
HOBBY

a year ago

Is that Deploy>Runtime ? I'm not very familiar with the app so you have to guide me.


a year ago

Its labeled as New Builder Environment


eamateli
HOBBY

a year ago

Yeah ! That's off by default. Nothing has changed. The app fails to deploy.


a year ago

Do you have 6 web commands in a single Procfile? or are those 6 different Procfiles?


eamateli
HOBBY

a year ago

those are different apps in my django project


a year ago

I'm sorry but that doesn't directly answer the question.


eamateli
HOBBY

a year ago

Yes, I have multiple commands in a single Procfile !!!


a year ago

That is not supported syntax, for each command in your Procfile you need to have a separate Railway service with a set start command applicable to what you want to start.

This has gotten a little off topic so I'm going to have to ask you to create another post as to not bombard the original poster with emails.


failing to deploy django project from github - Railway Help Station