This commit is contained in:
flaskfarm
2022-10-17 16:16:50 +09:00
parent 44594b671c
commit 771f6c1dee
5 changed files with 5 additions and 4 deletions

View File

@@ -309,7 +309,7 @@ class Framework:
else:
self.config['config_filepath'] = self.config['arg_config']
if os.path.exists(self.config['config_filepath']) == False:
if self.config.get('running_type').startswith('docker'):
if self.config.get('running_type', '').startswith('docker'):
with open(self.config['config_filepath'], 'w', encoding='utf8') as f:
yaml.dump({'path_data':'/data'}, f, default_flow_style=False, allow_unicode=True)
else: