Fix alembic migrations importing app
Ensure we connect to loaded config db
This commit is contained in:
parent
bb2b28cd11
commit
b5f630ba29
18 changed files with 69 additions and 81 deletions
|
@ -5,12 +5,12 @@ from config_app.config_util.config.inmemoryprovider import InMemoryProvider
|
|||
|
||||
def get_config_provider(config_volume, yaml_filename, py_filename, testing=False):
|
||||
""" Loads and returns the config provider for the current environment. """
|
||||
if True:
|
||||
return InMemoryProvider()
|
||||
|
||||
if testing:
|
||||
return TestConfigProvider()
|
||||
|
||||
return FileConfigProvider(config_volume, yaml_filename, py_filename)
|
||||
else:
|
||||
return InMemoryProvider()
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue