Skip to content

Commit 4bb3a53

Browse files
authored
build: compilemessages i18n (#2050)
1 parent f304593 commit 4bb3a53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/smartdoc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def load_from_yml(self):
199199
def load_from_env(self):
200200
keys = os.environ.keys()
201201
config = {key.replace('MAXKB_', ''): os.environ.get(key) for key in keys if key.startswith('MAXKB_')}
202-
if len(config.keys()) <= 1:
202+
if len(config.keys()) <= 0:
203203
msg = f"""
204204
205205
Error: No config env found.

installer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN python3 -m venv /opt/py3 && \
2727
. /opt/py3/bin/activate && \
2828
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "^2.2.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
2929
poetry install && \
30-
python3 /opt/maxkb/app/apps/manage.py compilemessages
30+
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb/app/apps/manage.py compilemessages
3131

3232
FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8
3333
ARG DOCKER_IMAGE_TAG=dev \

0 commit comments

Comments
 (0)