mirror of
https://github.com/11notes/docker-kms-gui.git
synced 2025-10-23 04:52:15 +00:00
add DEBUG option
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
### 🪄 Features
|
||||
* remove truncation from clients.html
|
||||
* add DEBUG option via enivornment variable DEBUG
|
@@ -20,6 +20,7 @@ ARG APP_VERSION=stable
|
||||
ENV PYKMS_LICENSE_PATH=/opt/py-kms/LICENSE
|
||||
ENV PYKMS_VERSION_PATH=/opt/py-kms/VERSION
|
||||
ENV PORT=8080
|
||||
ENV LOG_LEVEL=INFO
|
||||
|
||||
# :: multi-stage
|
||||
COPY ./LICENSE /opt/py-kms
|
||||
|
@@ -1,8 +1,14 @@
|
||||
#!/bin/ash
|
||||
if [ -z "${1}" ]; then
|
||||
|
||||
if [ ! -z "${DEBUG}" ]; then
|
||||
LOG_LEVEL="DEBUG"
|
||||
eleven log debug "setting kms-gui log level to DEBUG"
|
||||
fi
|
||||
|
||||
cd /opt/py-kms
|
||||
set -- "gunicorn" \
|
||||
--log-level INFO \
|
||||
--log-level ${LOG_LEVEL} \
|
||||
pykms_WebUI:app
|
||||
|
||||
eleven log start
|
||||
|
Reference in New Issue
Block a user