From 30613b74ea2cadc8f31a3d4ca9ea4a7a280639ae Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Fri, 15 Jun 2018 14:58:37 +0200 Subject: [PATCH] whoosh test --- Dockerfile | 5 ++++- settings.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8f305c..bb6e4cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,4 +59,7 @@ RUN gulp build # RUN DJANGO_MODE=build python manage.py collectstatic --noinput -# \ No newline at end of file +# + +RUN mkdir -p /whoosh +RUN chmod a+rwx -R /whoosh \ No newline at end of file diff --git a/settings.py b/settings.py index 45e57af..92a3c47 100644 --- a/settings.py +++ b/settings.py @@ -63,14 +63,14 @@ HAYSTACK_DEFAULT_OPERATOR = 'OR' HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', - 'PATH': os.path.join('/tmp/whoosh', 'default'), + 'PATH': os.path.join('/whoosh', 'default'), }, } for lang_code, lang in LANGUAGES: HAYSTACK_CONNECTIONS[lang_code] = {} HAYSTACK_CONNECTIONS[lang_code].update({ 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', - 'PATH': os.path.join('/tmp/whoosh', lang_code), + 'PATH': os.path.join('/whoosh', lang_code), }) HAYSTACK_ROUTERS = ['aldryn_search.router.LanguageRouter', ]