##// 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 cache_dir = %(here)s/data
68 cache_dir = %(here)s/data
69 index_dir = %(here)s/data/index
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 ## uncomment and set this path to use archive download cache
75 ## uncomment and set this path to use archive download cache
72 #archive_cache_dir = /tmp/tarballcache
76 #archive_cache_dir = /tmp/tarballcache
73
77
@@ -68,6 +68,10 b' lang = en'
68 cache_dir = %(here)s/data
68 cache_dir = %(here)s/data
69 index_dir = %(here)s/data/index
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 ## uncomment and set this path to use archive download cache
75 ## uncomment and set this path to use archive download cache
72 #archive_cache_dir = /tmp/tarballcache
76 #archive_cache_dir = /tmp/tarballcache
73
77
@@ -68,6 +68,10 b' lang = en'
68 cache_dir = %(here)s/data
68 cache_dir = %(here)s/data
69 index_dir = %(here)s/data/index
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 ## uncomment and set this path to use archive download cache
75 ## uncomment and set this path to use archive download cache
72 #archive_cache_dir = /tmp/tarballcache
76 #archive_cache_dir = /tmp/tarballcache
73
77
@@ -96,8 +96,9 b' def load_environment(global_conf, app_co'
96 init_model(sa_engine_db1)
96 init_model(sa_engine_db1)
97
97
98 repos_path = make_ui('db').configitems('paths')[0][1]
98 repos_path = make_ui('db').configitems('paths')[0][1]
99 repo2db_mapper(ScmModel().repo_scan(repos_path),
99 if str2bool(config.get('initial_repo_scan', True)):
100 remove_obsolete=False, install_git_hook=False)
100 repo2db_mapper(ScmModel().repo_scan(repos_path),
101 remove_obsolete=False, install_git_hook=False)
101 set_available_permissions(config)
102 set_available_permissions(config)
102 config['base_path'] = repos_path
103 config['base_path'] = repos_path
103 set_rhodecode_config(config)
104 set_rhodecode_config(config)
@@ -68,6 +68,10 b' lang = en'
68 cache_dir = /tmp/rc/data
68 cache_dir = /tmp/rc/data
69 index_dir = /tmp/rc/index
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 ## uncomment and set this path to use archive download cache
75 ## uncomment and set this path to use archive download cache
72 #archive_cache_dir = /tmp/tarballcache
76 #archive_cache_dir = /tmp/tarballcache
73
77
General Comments 0
You need to be logged in to leave comments. Login now