Deploy Backend
giolreis
TRIALOP

a year ago

Hello,

I’m currently trying to deploy the backend of my project, but I’m encountering the following error during the deployment process:

/bin/bash: line 1: python: command not found

In my railway.json, the deployment configuration is as follows:

{ "$schema": "https://schema.up.railway.app/railway.schema.json", "deploy": { "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn <nome_do_projeto>.wsgi:application", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } }

It seems that the environment is unable to recognize the python command. I suspect that it might be due to Python not being installed or not being accessible in the PATH.

Could you please advise on how I can resolve this? Should I use python3 instead of python in the startCommand? Or is there another solution I need to consider?

Thank you for your help!

Best regards,

1 Replies

a year ago

Would you mind sending your build logs?

https://bookmarklets.up.railway.app/log-downloader/


Welcome!

Sign in to your Railway account to join the conversation.

Loading...