From 00b4e81d20bdd31116f953b3f68c10463e8f8f44 Mon Sep 17 00:00:00 2001 From: soju6jan Date: Mon, 3 Oct 2022 12:22:01 +0900 Subject: [PATCH] test --- lib/framework/init_main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/framework/init_main.py b/lib/framework/init_main.py index d016503..2a069e3 100644 --- a/lib/framework/init_main.py +++ b/lib/framework/init_main.py @@ -295,7 +295,11 @@ class Framework: else: self.config['config_filepath'] = self.config['arg_config'] if not os.path.exists(self.config['config_filepath']): - if self.config.get('running_type') == 'docker': + # celery는 환경변수 사용불가로 native 판단 + # 도커는 celery가 먼저 진입 + # 추후에 변경할 것!!!!!!!!!!!!!!!!! TODO + #if self.config.get('running_type') == 'docker': + if self.config.get('running_type') == 'docker' or os.path.exists('/data'): shutil.copy( os.path.join(self.path_app_root, 'files', 'config.yaml.docker'), self.config['config_filepath']