Move configuration files under $site_path/etc
Most applications store their configuration files below some sort of etc directory within the application's "home place". We should do the same thing given that we have quite a few top level items in our $site_path directory (db, cache, logs, static, etc). Change-Id: Ia38ddab0174433acb59f271e33f32b5061121ea1 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -41,8 +41,9 @@ class GerritServerConfigProvider implements Provider<Config> {
|
||||
|
||||
@Override
|
||||
public Config get() {
|
||||
final File gerrit_config = new File(sitePath, "gerrit.config");
|
||||
final File secure_config = new File(sitePath, "secure.config");
|
||||
final File etc = new File(sitePath, "etc");
|
||||
final File gerrit_config = new File(etc, "gerrit.config");
|
||||
final File secure_config = new File(etc, "secure.config");
|
||||
|
||||
FileBasedConfig cfg = new FileBasedConfig(gerrit_config);
|
||||
|
||||
|
Reference in New Issue
Block a user