mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-12-04 05:20:35 +00:00
env
This commit is contained in:
parent
4ade655f34
commit
9a1ec05b07
2 changed files with 5 additions and 2 deletions
|
@ -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
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue