delete failedcontainer

This commit is contained in:
qiaofeng1227 2023-06-02 10:39:34 +08:00
parent 99dcc86a25
commit 0b2130fc36
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -198,7 +198,7 @@ def check_app(app_name, customer_name, app_version):
elif customer_name == None: elif customer_name == None:
code = const.ERROR_CLIENT_PARAM_BLANK code = const.ERROR_CLIENT_PARAM_BLANK
message = "customer_name is null" message = "customer_name is null"
elif len(customer_name) < 2: elif len(customer_name) < 1:
code = const.ERROR_CLIENT_PARAM_BLANK code = const.ERROR_CLIENT_PARAM_BLANK
message = "customer_name must be longer than 2 chars" message = "customer_name must be longer than 2 chars"
elif app_version == None: elif app_version == None: