config: Fix settings for celery tasks.
This commit is contained in:
parent
8e0eed4a23
commit
3d5075af5f
2 changed files with 7 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ CELERY_EAGER = False
|
|||
# link to config for pylons
|
||||
CONFIG = {}
|
||||
|
||||
# Populated with the settings dictionary from application init in
|
||||
# rhodecode.conf.environment.load_pyramid_environment
|
||||
PYRAMID_SETTINGS = {}
|
||||
|
||||
# Linked module for extensions
|
||||
EXTENSIONS = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -145,6 +145,9 @@ def load_pyramid_environment(global_config, settings):
|
|||
settings_merged = global_config.copy()
|
||||
settings_merged.update(settings)
|
||||
|
||||
# Store the settings to make them available to other modules.
|
||||
rhodecode.PYRAMID_SETTINGS = settings_merged
|
||||
|
||||
# If this is a test run we prepare the test environment like
|
||||
# creating a test database, test search index and test repositories.
|
||||
# This has to be done before the database connection is initialized.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue