From 6cc98cc14dff29313c956d042199e121bc82480f Mon Sep 17 00:00:00 2001 From: jaewon Date: Sun, 29 Apr 2018 16:22:17 +0900 Subject: [PATCH] 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';