Add settings without background computation for prod

This commit is contained in:
Daoud Clarke 2023-10-19 14:33:10 +01:00
parent 4917b882d2
commit b583e18d6a
3 changed files with 9 additions and 3 deletions

View file

@ -57,6 +57,4 @@ VOLUME ["/data"]
EXPOSE 5000
ENV DJANGO_SETTINGS_MODULE=mwmbl.settings_prod
CMD ["/venv/bin/mwmbl-tinysearchengine"]

View file

@ -0,0 +1,8 @@
from mwmbl.settings_common import *
DEBUG = False
ALLOWED_HOSTS = ["api.mwmbl.org", "mwmbl.org"]
DATA_PATH = "/app/storage"
RUN_BACKGROUND_PROCESSES = True
NUM_PAGES = 10240000

View file

@ -4,5 +4,5 @@ DEBUG = False
ALLOWED_HOSTS = ["api.mwmbl.org", "mwmbl.org"]
DATA_PATH = "/app/storage"
RUN_BACKGROUND_PROCESSES = True
RUN_BACKGROUND_PROCESSES = False
NUM_PAGES = 10240000