mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Add ability to reload settings
This commit is contained in:
parent
7febd3ff5c
commit
e702a86c9f
1 changed files with 45 additions and 38 deletions
|
@ -112,6 +112,9 @@ exports.abiwordAvailable = function()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
exports.reloadSettings = function reloadSettings() {
|
||||||
// Discover where the settings file lives
|
// Discover where the settings file lives
|
||||||
var settingsFilename = argv.settings || "settings.json";
|
var settingsFilename = argv.settings || "settings.json";
|
||||||
settingsFilename = path.resolve(path.join(root, settingsFilename));
|
settingsFilename = path.resolve(path.join(root, settingsFilename));
|
||||||
|
@ -160,3 +163,7 @@ for(var i in settings)
|
||||||
if(exports.dbType === "dirty"){
|
if(exports.dbType === "dirty"){
|
||||||
console.warn("DirtyDB is used. This is fine for testing but not recommended for production.")
|
console.warn("DirtyDB is used. This is fine for testing but not recommended for production.")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// initially load settings
|
||||||
|
exports.reloadSettings();
|
||||||
|
|
Loading…
Reference in a new issue