better:更好的心流结构,使用了观察取代外部世界
This commit is contained in:
@@ -29,7 +29,7 @@ class EnvConfig:
|
||||
if env_type == 'dev':
|
||||
env_file = self.ROOT_DIR / '.env.dev'
|
||||
elif env_type == 'prod':
|
||||
env_file = self.ROOT_DIR / '.env.prod'
|
||||
env_file = self.ROOT_DIR / '.env'
|
||||
|
||||
if env_file.exists():
|
||||
load_dotenv(env_file, override=True)
|
||||
|
||||
Reference in New Issue
Block a user