diff --git a/apps/smartdoc/conf.py b/apps/smartdoc/conf.py index 79afdfd0150..de61cb8e339 100644 --- a/apps/smartdoc/conf.py +++ b/apps/smartdoc/conf.py @@ -199,7 +199,7 @@ def load_from_yml(self): def load_from_env(self): keys = os.environ.keys() config = {key.replace('MAXKB_', ''): os.environ.get(key) for key in keys if key.startswith('MAXKB_')} - if len(config.keys()) <= 1: + if len(config.keys()) <= 0: msg = f""" Error: No config env found. diff --git a/installer/Dockerfile b/installer/Dockerfile index 914251cfa44..752d2b5c6a6 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -27,7 +27,7 @@ RUN python3 -m venv /opt/py3 && \ . /opt/py3/bin/activate && \ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "^2.2.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \ poetry install && \ - python3 /opt/maxkb/app/apps/manage.py compilemessages + export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb/app/apps/manage.py compilemessages FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8 ARG DOCKER_IMAGE_TAG=dev \