Add settings without background computation for prod
This commit is contained in:
parent
4917b882d2
commit
b583e18d6a
3 changed files with 9 additions and 3 deletions
|
@ -57,6 +57,4 @@ VOLUME ["/data"]
|
|||
|
||||
EXPOSE 5000
|
||||
|
||||
ENV DJANGO_SETTINGS_MODULE=mwmbl.settings_prod
|
||||
|
||||
CMD ["/venv/bin/mwmbl-tinysearchengine"]
|
||||
|
|
8
mwmbl/settings_bg_prod.py
Normal file
8
mwmbl/settings_bg_prod.py
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue