Commands from built.sh are just skipped

I have built a flask app and try to run the build.sh script to install the dependencies and start executing the file. But pip install -r requirements.txt and pip freeze > requirements.txt
are just skipped. Running the rest of the code for the build.sh file. I don’t know what I did wrong.

After execution the file the app will start with gunicorn my_app:flask_app.

Here is my built.sh file
#!/usr/bin/env bash

exit on error

set -o errexit

Activate virtual environment

python3 -m venv .venv

source .venv/bin/activate

Debugging Print virtual environment path

echo “Virtual environment: $VIRTUAL_ENV”

Freeze and install dependencies

pip freeze > requirements.txt

Debugging: Print contents of requirements.txt

cat requirements.txt

Install requirements

pip install -r requirements.txt

Debugging: Verify installed packages

pip list

Running load vector file before starting the app

python load_vector.py

Thanks for advance!

Hey,

I see that you’ve already initiated a support ticket with us. To avoid any confusion or duplicate efforts, let’s continue the conversation there.

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

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