#!/usr/bin/env bash while ! nc -z $DB_HOST 5432 ; do echo "APP Waiting for the DB Server" sleep 3 done #python3 manage.py collectstatic --noinput #python3 manage.py migrate celery -A main worker --loglevel=info