appmanage

This commit is contained in:
qiaofeng1227 2023-08-17 15:36:22 +08:00
parent ed656d1863
commit 2499333dcf
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -47,6 +47,7 @@ def get_release_version(version):
def get_release_url():
now = shell_execute.execute_command_output_all("cat /data/apps/websoft9/version.json")['result']
now_release = json.loads(now)['RELEASE']
myLogger.info_logger(now_release)
if now_release == None or now_release == "dev":
return const.ARTIFACT_URL_DEV
else: