diff options
author | 2019-07-03 16:37:19 +0200 | |
---|---|---|
committer | 2019-07-03 16:37:19 +0200 | |
commit | 1616d7a467e9df3996a8080b00809648a5df14a3 (patch) | |
tree | 9da2d51f6ba0e78a5ceb85291d6bcf5e8ef350c6 /docker/app/scripts/migrate_and_serve.sh | |
parent | Let's increase the verbosity and see what you guys have to say, migrate and c... (diff) |
Adding whitenoise to the toolchain to serve static images
Diffstat (limited to 'docker/app/scripts/migrate_and_serve.sh')
-rwxr-xr-x | docker/app/scripts/migrate_and_serve.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/app/scripts/migrate_and_serve.sh b/docker/app/scripts/migrate_and_serve.sh index 42bf67a3..0b54a2e5 100755 --- a/docker/app/scripts/migrate_and_serve.sh +++ b/docker/app/scripts/migrate_and_serve.sh @@ -11,7 +11,7 @@ echo [i] Applying migrations. python manage.py migrate --verbosity 1 echo [i] Collecting static files. -python manage.py collectstatic --no-input --clear --verbosity 0 +python manage.py collectstatic --no-input --clear --verbosity 1 echo [i] Creating a superuser. echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin', 'admin') if not User.objects.filter(username='admin').exists() else print('Admin user already exists')" | python manage.py shell |