mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
rename
This commit is contained in:
parent
3bfb5e5982
commit
dcdb08b2be
2 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -27,13 +27,6 @@ redis_conn = Redis(host='websoft9-redis', port=6379)
|
|||
# 使用指定的 Redis 连接创建 RQ 队列
|
||||
q = Queue(connection=redis_conn,default_timeout=3600)
|
||||
|
||||
def AppList():
|
||||
myLogger.info_logger("Install app ...")
|
||||
ret = {}
|
||||
ret['ResponseData'] = {}
|
||||
app_id = app_name + "_" + customer_name
|
||||
ret['ResponseData'] = get_my_app()
|
||||
|
||||
# 获取所有app的信息
|
||||
def get_my_app(app_id):
|
||||
installed_list = get_apps_from_compose()
|
||||
|
@ -278,7 +271,7 @@ def get_apps_from_compose():
|
|||
password = ""
|
||||
official_app = False
|
||||
|
||||
if customer_name in ['appmanage', 'nginxproxymanager','redis'] and app_path == '/data/apps/stackhub/docker/' + customer_name:
|
||||
if customer_name in ['w9appmanage', 'w9nginxproxymanager','w9redis'] and app_path == '/data/apps/stackhub/docker/' + customer_name:
|
||||
continue
|
||||
# get code
|
||||
status = app_info["Status"].split("(")[0]
|
||||
|
|
Loading…
Reference in a new issue