From 36e06bab8859ae324d6e381a285e1ec3132fe08c Mon Sep 17 00:00:00 2001 From: Yaraslau Kurmyza Date: Fri, 28 Sep 2018 16:31:29 +0200 Subject: [PATCH] Adds support for unix socketPath --- lib/util/cmd.helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index e473f033bc..3e81f71741 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -21,6 +21,7 @@ program .option('-r, --ipAddress ', 'IP interface of your server / localhost by default') .option('-n, --portNumber ', 'port number for app / 3000 by default') .option('-o, --port ', 'port number for mysql / 3306 by default') + .option('-S, --socketPath ', 'unix socket path / not used by default') .option('-s, --storageFolder ', 'storage folder / current working dir by default / available only with local') .option('-i, --ignoreTables ', 'comma separated table names to ignore') .option('-a, --apiPrefix ', 'api url prefix / "/api/" by default') @@ -61,6 +62,7 @@ exports.handle = program => { program.user = program.user || 'root'; program.password = program.password || ''; program.host = program.host || 'localhost'; + program.socketPath = program.socketPath || ''; program.storageFolder = program.storageFolder || process.cwd() program.apiPrefix = program.apiPrefix || '/api/' program.readOnly = program.readOnly || false;