set domain

This commit is contained in:
qiaofeng1227 2023-05-16 18:03:46 +08:00
parent 599b8a055c
commit 5fc8e776a7
2 changed files with 2 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

@ -288,7 +288,7 @@ def AppDomainSet(request: Request, app_id: Optional[str] = Query(default=None, d
get_headers(request)
ret = {}
ret['ResponseData'] = {}
manage.app_domain_set(app_id,domain)
manage.app_domain_set(domain,app_id)
ret['ResponseData']['AppID'] = app_id
except CommandException as ce:
ret = {}