mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-06 18:07:40 +02:00
19 lines
281 B
Bash
Executable File
19 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$DATABASE" = "postgres" ]
|
|
then
|
|
echo "Waiting for postgres..."
|
|
|
|
while ! nc -z ${POSTGRES_HOST} ${POSTGRES_PORT}; do
|
|
sleep 0.1
|
|
done
|
|
|
|
echo "PostgreSQL started"
|
|
fi
|
|
|
|
python3 manage.py migrate
|
|
|
|
python3 manage.py runserver 0.0.0.0:8000
|
|
|
|
exec "$@"
|