15 lines
490 B
Bash
Executable File
15 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${INITIALIZE_DB}" = false ]; then
|
|
echo "Initialization not required"
|
|
else
|
|
echo "Initializating database"
|
|
python init_db.py --initialize_tables --initialize_data
|
|
python manage.py makemigrations fetcher; python manage.py migrate --fake-initial
|
|
python manage.py createsuperuser --noinput
|
|
python manage.py collectstatic --no-input
|
|
python manage.py import --filename scheduled_tasks.json
|
|
#
|
|
# python manage.py inspectdb # Debugging model
|
|
fi
|