Min num of sources filter, initialization scripts, docker ready to use dev mode
This commit is contained in:
12
app_urls/script_initialize.sh
Executable file
12
app_urls/script_initialize.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "${INITIALIZE_DB}" = false ]; then
|
||||
echo "Initialization not required"
|
||||
else
|
||||
echo "Initializating database"
|
||||
python 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
|
||||
fi
|
||||
Reference in New Issue
Block a user