Skip to content

Commit

Permalink
build: compilemessages i18n (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Jan 21, 2025
1 parent f304593 commit 4bb3a53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/smartdoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion installer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4bb3a53

Please sign in to comment.