17 lines
334 B
Bash
17 lines
334 B
Bash
#! /usr/bin/env sh
|
|
set -e
|
|
echo "Running inside /app/docker-prestart.sh"
|
|
|
|
cd /app
|
|
|
|
echo "Creating migrations..."
|
|
python manage.py makemigrations books
|
|
python manage.py makemigrations
|
|
|
|
echo "Applying migrations..."
|
|
python manage.py migrate --noinput
|
|
|
|
echo "Collecting static files..."
|
|
python manage.py collectstatic --noinput
|
|
|
|
exec "$@" |