mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
appname must 2 length
This commit is contained in:
parent
56b32532d6
commit
99dcc86a25
@ -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
|
||||
|
@ -198,7 +198,7 @@ def check_app(app_name, customer_name, app_version):
|
||||
elif customer_name == None:
|
||||
code = const.ERROR_CLIENT_PARAM_BLANK
|
||||
message = "customer_name is null"
|
||||
elif len(customer_name) < 1:
|
||||
elif len(customer_name) < 2:
|
||||
code = const.ERROR_CLIENT_PARAM_BLANK
|
||||
message = "customer_name must be longer than 2 chars"
|
||||
elif app_version == None:
|
||||
|
Loading…
Reference in New Issue
Block a user