db: Move database initialization up to pyramid.
We need the DB during app setup. Therefore we have to move this up to the make_pyramid_app function.
This commit is contained in:
parent
7f133e9332
commit
35f714fa77
2 changed files with 6 additions and 5 deletions
|
|
@ -145,10 +145,6 @@ def load_environment(global_conf, app_conf, initial=False,
|
|||
protocol=utils.get_vcs_server_protocol(config),
|
||||
log_level=config['vcs.server.log_level'])
|
||||
|
||||
# MULTIPLE DB configs
|
||||
# Setup the SQLAlchemy database engine
|
||||
utils.initialize_database(config)
|
||||
|
||||
set_available_permissions(config)
|
||||
db_cfg = make_db_config(clear_session=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue