forked from TagesschuleElementa/www.tagesschule-elementa.ch
docker file fix
This commit is contained in:
@@ -57,4 +57,6 @@ RUN gulp build
|
||||
|
||||
# <STATIC>
|
||||
RUN DJANGO_MODE=build python manage.py collectstatic --noinput
|
||||
# </STATIC>
|
||||
# </STATIC>
|
||||
|
||||
RUN DJANGO_MODE=build python manage.py rebuild_index --noinput
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user