From 6cc98cc14dff29313c956d042199e121bc82480f Mon Sep 17 00:00:00 2001 From: jaewon Date: Sun, 29 Apr 2018 16:22:17 +0900 Subject: [PATCH 1/3] add database portnumber --- 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 d70b949e82..6044ea3c51 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -20,6 +20,7 @@ program .option('-d, --database ', 'database schema name') .option('-r, --ipAddress ', 'IP interface of your server / locahost by default') .option('-n, --portNumber ', 'port number for app / 3000 by default') + .option('-port, --port ', 'port number for mysql / 3306 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') @@ -53,6 +54,7 @@ exports.handle = program => { /**************** START : default values ****************/ program.ipAddress = program.ipAddress || 'localhost'; program.portNumber = program.portNumber || 3000; + program.port = program.port || 3000; program.user = program.user || 'root'; program.password = program.password || ''; program.host = program.host || 'localhost'; From 44851c8d90c9782818a438841914754bb7731d8d Mon Sep 17 00:00:00 2001 From: jaewon Date: Sun, 29 Apr 2018 16:29:31 +0900 Subject: [PATCH 2/3] add mysql port number cmd parameter --- lib/util/cmd.helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index 6044ea3c51..3f44e2ef0f 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -54,7 +54,7 @@ exports.handle = program => { /**************** START : default values ****************/ program.ipAddress = program.ipAddress || 'localhost'; program.portNumber = program.portNumber || 3000; - program.port = program.port || 3000; + program.port = program.port || 3306; program.user = program.user || 'root'; program.password = program.password || ''; program.host = program.host || 'localhost'; From f85b2d2c92e48a544210e2cfa2bb6541889901bc Mon Sep 17 00:00:00 2001 From: jaewon Date: Sun, 29 Apr 2018 17:04:01 +0900 Subject: [PATCH 3/3] port key is -o --- lib/util/cmd.helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index 3f44e2ef0f..2b4e50940a 100644 --- a/lib/util/cmd.helper.js +++ b/lib/util/cmd.helper.js @@ -20,7 +20,7 @@ program .option('-d, --database ', 'database schema name') .option('-r, --ipAddress ', 'IP interface of your server / locahost by default') .option('-n, --portNumber ', 'port number for app / 3000 by default') - .option('-port, --port ', 'port number for mysql / 3306 by default') + .option('-o, --port ', 'port number for mysql / 3306 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')