mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-14 05:47:41 +02:00
17 lines
228 B
Bash
Executable File
17 lines
228 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$DATABASE" = "postgres" ]
|
|
then
|
|
echo "Waiting for postgres..."
|
|
|
|
while ! nc -z db 5432; do
|
|
sleep 0.1
|
|
done
|
|
|
|
echo "PostgreSQL started"
|
|
fi
|
|
|
|
python3 manage.py runserver 0.0.0.0:8000
|
|
|
|
exec "$@"
|