a year 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
15 Replies
a year ago
I don't know if it was a typo or not, but the filename is Procfile
with a capital P
a year ago
I also had that problem and fixed it by running the command (python manage.py runserver).
a year 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[bot] • about 1 year ago
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
Yes !
a year ago
Check your service settings, are you on the V2 builder? if so, switch it off.
a year ago
Is that Deploy>Runtime ? I'm not very familiar with the app so you have to guide me.
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?
a year ago
those are different apps in my django project
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.