仓库初始化
This commit is contained in:
commit
83cbe007ba
60 files changed
+5190
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
from .development import DevelopmentConfig
|
||||
from .production import ProductionConfig
|
||||
|
||||
def get_config():
|
||||
mode = os.getenv('MODE','development').lower()
|
||||
if mode == 'development':
|
||||
return DevelopmentConfig
|
||||
elif mode == 'production':
|
||||
return ProductionConfig
|
||||
else:
|
||||
raise ValueError('Invalid MODE environment variable')
|
||||
|
||||
Reference in new issue
Block a user