From 506dd799f5eb23fcf300975e2755d38d07cdb4f1 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Thu, 12 Dec 2019 15:31:50 +0100 Subject: [PATCH] fixing config-only check error --- Procfile | 2 +- src/common/config/private/ConfigClass.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index 8def31b4..d9c8bbcc 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: node ./src/backend/index.js --Client-authenticationRequired=false --Client-Sharing-enabled=false +web: npm start -- --Client-authenticationRequired=false --Client-Sharing-enabled=false diff --git a/src/common/config/private/ConfigClass.ts b/src/common/config/private/ConfigClass.ts index 84cf5c58..7c5ad776 100644 --- a/src/common/config/private/ConfigClass.ts +++ b/src/common/config/private/ConfigClass.ts @@ -32,7 +32,7 @@ export class ConfigClass extends PrivateConfigDefaultsClass implements IPrivateC ['MYSQL_DATABASE', 'Server-Database-mysql-database']]); this.removeComment(); - if (process.argv.indexOf('--config-only')) { + if (process.argv.indexOf('--config-only') !== -1) { console.log('started with \'--config-only\' flag. Saving config and exiting.'); process.exit(); }