From 395df2d245b22028bf216d88e3da6f0e72c76572 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Sun, 1 Apr 2018 15:42:18 +0200 Subject: [PATCH] docker file fix --- Dockerfile | 4 +++- src/project/management/__init__.py | 0 src/project/management/commands/__init__.py | 0 src/project/management/commands/update_whoosh.py | 10 ---------- 4 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 src/project/management/__init__.py delete mode 100644 src/project/management/commands/__init__.py delete mode 100644 src/project/management/commands/update_whoosh.py diff --git a/Dockerfile b/Dockerfile index c5eb4eb..f699780 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,4 +57,6 @@ RUN gulp build # RUN DJANGO_MODE=build python manage.py collectstatic --noinput -# \ No newline at end of file +# + +RUN DJANGO_MODE=build python manage.py rebuild_index --noinput \ No newline at end of file diff --git a/src/project/management/__init__.py b/src/project/management/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/project/management/commands/__init__.py b/src/project/management/commands/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/project/management/commands/update_whoosh.py b/src/project/management/commands/update_whoosh.py deleted file mode 100644 index 3b2d540..0000000 --- a/src/project/management/commands/update_whoosh.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.core.management.base import BaseCommand -import os - - -class Command(BaseCommand): - def handle(self, *args, **options): - directory = './whoosh/index/' - - if not os.path.exists(directory): - os.makedirs(directory)