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:
Johannes Bornhold 2016-06-06 09:05:03 +02:00
parent 7f133e9332
commit 35f714fa77
2 changed files with 6 additions and 5 deletions

View file

@ -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)