Your code should have the following structure:
├── run.sh
├── private
│ ├── ...
└── public
├── <THIS REPO>
run.sh
should have the following contents (on Director, run.sh
starts at public/
):
#!/bin/sh
# This assumes you've created a virtual environment and installed Gunicorn
source venv/bin/activate
python manage.py collectstatic --no-input
gunicorn --bind $HOST:$PORT --workers 1 'practica_api.wsgi:application'