blob: 81fbd834a9cd1fef73ef81d7be7c19386222f622 [file] [log] [blame]
#!/bin/sh
if [ "$DATABASE" = "postgres" ]
then
echo "Waiting for postgres..."
while ! nc -z $SQL_HOST $SQL_PORT; do
sleep 0.1
done
echo "PostgreSQL started"
fi
python manage.py migrate --noinput
python manage.py collectstatic --noinput
uwsgi --http :8000 --module testrail_bot.wsgi