add prod and dev compose
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ -n "$POSTGRES_HOST" ]; then
|
||||
echo "Waiting for postgres at $POSTGRES_HOST:${POSTGRES_PORT:-5432}..."
|
||||
while ! nc -z "$POSTGRES_HOST" "${POSTGRES_PORT:-5432}"; do
|
||||
sleep 0.2
|
||||
done
|
||||
echo "PostgreSQL is up"
|
||||
fi
|
||||
|
||||
echo "Applying database migrations..."
|
||||
python manage.py migrate --noinput
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user