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,6 +96,7 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 | if str2bool(config.get('initial_repo_scan', True)): | |||
99 | repo2db_mapper(ScmModel().repo_scan(repos_path), |
|
100 | repo2db_mapper(ScmModel().repo_scan(repos_path), | |
100 | remove_obsolete=False, install_git_hook=False) |
|
101 | remove_obsolete=False, install_git_hook=False) | |
101 | set_available_permissions(config) |
|
102 | set_available_permissions(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