##// END OF EJS Templates
added initial_repo_scan flag for controll if repo scaning should be performed on every startup....
marcink -
r3778:88f11b5e beta
parent child Browse files
Show More
@@ -68,6 +68,10 b' lang = en'
68 68 cache_dir = %(here)s/data
69 69 index_dir = %(here)s/data/index
70 70
71 ## perform a full repository scan on each server start, this should be
72 ## set to false after first startup, to allow faster server restarts.
73 initial_repo_scan = true
74
71 75 ## uncomment and set this path to use archive download cache
72 76 #archive_cache_dir = /tmp/tarballcache
73 77
@@ -68,6 +68,10 b' lang = en'
68 68 cache_dir = %(here)s/data
69 69 index_dir = %(here)s/data/index
70 70
71 ## perform a full repository scan on each server start, this should be
72 ## set to false after first startup, to allow faster server restarts.
73 initial_repo_scan = true
74
71 75 ## uncomment and set this path to use archive download cache
72 76 #archive_cache_dir = /tmp/tarballcache
73 77
@@ -68,6 +68,10 b' lang = en'
68 68 cache_dir = %(here)s/data
69 69 index_dir = %(here)s/data/index
70 70
71 ## perform a full repository scan on each server start, this should be
72 ## set to false after first startup, to allow faster server restarts.
73 initial_repo_scan = true
74
71 75 ## uncomment and set this path to use archive download cache
72 76 #archive_cache_dir = /tmp/tarballcache
73 77
@@ -96,8 +96,9 b' def load_environment(global_conf, app_co'
96 96 init_model(sa_engine_db1)
97 97
98 98 repos_path = make_ui('db').configitems('paths')[0][1]
99 repo2db_mapper(ScmModel().repo_scan(repos_path),
100 remove_obsolete=False, install_git_hook=False)
99 if str2bool(config.get('initial_repo_scan', True)):
100 repo2db_mapper(ScmModel().repo_scan(repos_path),
101 remove_obsolete=False, install_git_hook=False)
101 102 set_available_permissions(config)
102 103 config['base_path'] = repos_path
103 104 set_rhodecode_config(config)
@@ -68,6 +68,10 b' lang = en'
68 68 cache_dir = /tmp/rc/data
69 69 index_dir = /tmp/rc/index
70 70
71 ## perform a full repository scan on each server start, this should be
72 ## set to false after first startup, to allow faster server restarts.
73 initial_repo_scan = true
74
71 75 ## uncomment and set this path to use archive download cache
72 76 #archive_cache_dir = /tmp/tarballcache
73 77
General Comments 0
You need to be logged in to leave comments. Login now