Commands from are just skipped

I have built a flask app and try to run the 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 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 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


Thanks for advance!


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.

Render Support, UTC+3

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