Merge pull request #121 from mwmbl/allow-no-bg-in-prod

Add settings without background computation for prod
This commit is contained in:
Daoud Clarke 2023-10-19 14:34:13 +01:00 committed by GitHub
commit 0db4158317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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