This commit is contained in:
qiaofeng1227 2023-05-19 15:41:50 +08:00
parent 4ade655f34
commit 9a1ec05b07
2 changed files with 5 additions and 2 deletions

View file

@ -18,5 +18,5 @@ RUN chmod +x /etc/supervisor/conf.d/supervisord.conf /cmd.sh
RUN pip install -r requirements.txt
RUN mkdir /data
# Expose the port in which the application will be deployeds
# Expose the port in which the application will be deployed
EXPOSE 5000

View file

@ -185,8 +185,11 @@ def get_map(path):
if int(code) == 0:
ret = output["result"]
env_list = ret.split("\n")
myLogger.info_logger(env_list)
for env in env_list:
env_dic[env.split("=")[0]] = env.split("=")[1]
myLogger.info_logger(env)
if "=" in env:
env_dic[env.split("=")[0]] = env.split("=")[1]
return env_dic
def read_env(path, key):