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', ]