This commit is contained in:
qiaofeng1227 2023-05-16 17:04:16 +08:00
parent b599b50082
commit 3976b99741
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisord
# Install supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View file

@ -802,7 +802,8 @@ def app_domain_add(app_id, domain):
}
response = requests.post(url, data=json.dumps(data), headers=headers)
myLogger.info_logger(response)
myLogger.info_logger(response.json())
myLogger.info_logger(response.json().get("error"))
#if response.json()["error"]:
# myLogger.info_logger(response.json())
# raise CommandException(const.ERROR_API_NGINX, response.json()["error"]["message"], "")