Bash: build.sh: command not found

I am new to django and this is the first time for me. it keeps giving the same error build fails.

Sep 28 09:10:09 AM bash: build.sh: command not found
Sep 28 09:10:09 AM ==> Build failed :disappointed:

I have copied the following lines into the build.sh file but it keeps giving the same error:

#!/usr/bin/env bash

exit on error

set -o errexit
pip install -r requirements.txt
python manage.py collectstatic --no-input
python manage.py migrate

also i have this command line on start command: gunicorn portfolio.wsgi:application
my django project is called portfolio.

1 Like

Hey,

Could you provide your build and start commands? Also, make sure that build.sh is present in your root directory.

Jérémy.
Render Support, UTC+3

You need ./build.sh (or sh build.sh) instead of build.sh with no other leading characters/commands.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.