File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
3232FROM ghcr.io/1panel-dev/maxkb-python-pg:python3.11-pg15.8
3333ARG DOCKER_IMAGE_TAG=dev \
You can’t perform that action at this time.
0 commit comments