entrypoint.sh 314 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
3
4
#!/bin/bash

set -e

5
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
6

Thom Wiggers's avatar
Thom Wiggers committed
7
8
9
10
11
12
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l'; do
    >&2 echo "PostgreSQL is unavailable: Sleeping"
    sleep 5
done
>&2 echo "PostgreSQL is up"

13
cd /usr/src/app/website/
Thom Wiggers's avatar
Thom Wiggers committed
14
15
>&2 echo "Running ./manage.py $@"
./manage.py $@