mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 12:59:36 +02:00
Refresh world travel data each restart
This commit is contained in:
parent
f32a3393d9
commit
254844923b
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,6 @@ done
|
|||
# Apply Django migrations
|
||||
python manage.py migrate
|
||||
|
||||
# Check for default data
|
||||
python manage.py worldtravel-seed
|
||||
|
||||
# Create superuser if environment variables are set and there are no users present at all.
|
||||
if [ -n "$DJANGO_ADMIN_USERNAME" ] && [ -n "$DJANGO_ADMIN_PASSWORD" ]; then
|
||||
echo "Creating superuser..."
|
||||
|
@ -33,5 +30,8 @@ else:
|
|||
EOF
|
||||
fi
|
||||
|
||||
# Sync the countries and world travel regions
|
||||
python manage.py worldtravel-seed --force
|
||||
|
||||
# Start Django server
|
||||
python manage.py runserver 0.0.0.0:8000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue