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(); }