diff --git a/Dockerfile b/Dockerfile index 859ffce..7fd2103 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,4 @@ VOLUME ["/data"] EXPOSE 5000 -ENV DJANGO_SETTINGS_MODULE=mwmbl.settings_prod - CMD ["/venv/bin/mwmbl-tinysearchengine"] diff --git a/mwmbl/settings_bg_prod.py b/mwmbl/settings_bg_prod.py new file mode 100644 index 0000000..070bbf9 --- /dev/null +++ b/mwmbl/settings_bg_prod.py @@ -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 diff --git a/mwmbl/settings_prod.py b/mwmbl/settings_prod.py index 070bbf9..e2f4d11 100644 --- a/mwmbl/settings_prod.py +++ b/mwmbl/settings_prod.py @@ -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