diff --git a/Dockerfile b/Dockerfile index f699780..c5eb4eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,4 @@ RUN gulp build # RUN DJANGO_MODE=build python manage.py collectstatic --noinput -# - -RUN DJANGO_MODE=build python manage.py rebuild_index --noinput \ No newline at end of file +# \ No newline at end of file diff --git a/settings.py b/settings.py index 277cde9..7e7f4b6 100644 --- a/settings.py +++ b/settings.py @@ -39,6 +39,11 @@ MIDDLEWARE_CLASSES.extend([ # add your own middlewares here ]) +MIGRATION_COMMANDS = [ + 'python manage.py migrate --noinput', + 'python manage.py rebuild_index --noinput' +] + TEMPLATES[0]['OPTIONS']['context_processors'] += [ 'project.context_processors.search_form', 'project.context_processors.notification',