docker file fix

standalone
Simon Caminada 8 years ago
parent 19b3923533
commit 395df2d245

@ -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)
Loading…
Cancel
Save