Skip to content
Extraits de code Groupes Projets
Valider 23bd8372 rédigé par Christian Paul's avatar Christian Paul
Parcourir les fichiers

Merge remote-tracking branch 'upstream/develop' into j94/health

parents b66a6aa7 af084ee7
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
{ {
"name": "matrix-appservice-discord", "name": "matrix-appservice-discord",
"version": "1.0.0-rc3", "version": "1.0.0",
"description": "A bridge between Matrix and Discord", "description": "A bridge between Matrix and Discord",
"main": "discordas.js", "main": "discordas.js",
"scripts": { "scripts": {
......
...@@ -129,10 +129,6 @@ async function run() { ...@@ -129,10 +129,6 @@ async function run() {
} }
const config = new DiscordBridgeConfig(); const config = new DiscordBridgeConfig();
const port = opts.port || config.bridge.port;
if (!port) {
throw Error("Port not given in command line or config file");
}
const readConfig = yaml.safeLoad(fs.readFileSync(configPath, "utf8")); const readConfig = yaml.safeLoad(fs.readFileSync(configPath, "utf8"));
if (typeof readConfig !== "object") { if (typeof readConfig !== "object") {
throw Error("Config is not of type object"); throw Error("Config is not of type object");
...@@ -140,6 +136,10 @@ async function run() { ...@@ -140,6 +136,10 @@ async function run() {
config.applyConfig(readConfig); config.applyConfig(readConfig);
config.applyEnvironmentOverrides(process.env); config.applyEnvironmentOverrides(process.env);
Log.Configure(config.logging); Log.Configure(config.logging);
const port = opts.port || config.bridge.port;
if (!port) {
throw Error("Port not given in command line or config file");
}
if (config.database.roomStorePath || config.database.userStorePath) { if (config.database.roomStorePath || config.database.userStorePath) {
log.error("The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config. " + log.error("The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config. " +
"Please see docs/bridge-migrations.md on " + "Please see docs/bridge-migrations.md on " +
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter