|
|
@ -21,6 +21,7 @@ program |
|
|
|
.option('-r, --ipAddress <n>', 'IP interface of your server / localhost by default') |
|
|
|
.option('-r, --ipAddress <n>', 'IP interface of your server / localhost by default') |
|
|
|
.option('-n, --portNumber <n>', 'port number for app / 3000 by default') |
|
|
|
.option('-n, --portNumber <n>', 'port number for app / 3000 by default') |
|
|
|
.option('-o, --port <n>', 'port number for mysql / 3306 by default') |
|
|
|
.option('-o, --port <n>', 'port number for mysql / 3306 by default') |
|
|
|
|
|
|
|
.option('-S, --socketPath <n>', 'unix socket path / not used by default') |
|
|
|
.option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local') |
|
|
|
.option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local') |
|
|
|
.option('-i, --ignoreTables <n>', 'comma separated table names to ignore') |
|
|
|
.option('-i, --ignoreTables <n>', 'comma separated table names to ignore') |
|
|
|
.option('-a, --apiPrefix <n>', 'api url prefix / "/api/" by default') |
|
|
|
.option('-a, --apiPrefix <n>', 'api url prefix / "/api/" by default') |
|
|
@ -61,6 +62,7 @@ exports.handle = program => { |
|
|
|
program.user = program.user || 'root'; |
|
|
|
program.user = program.user || 'root'; |
|
|
|
program.password = program.password || ''; |
|
|
|
program.password = program.password || ''; |
|
|
|
program.host = program.host || 'localhost'; |
|
|
|
program.host = program.host || 'localhost'; |
|
|
|
|
|
|
|
program.socketPath = program.socketPath || ''; |
|
|
|
program.storageFolder = program.storageFolder || process.cwd() |
|
|
|
program.storageFolder = program.storageFolder || process.cwd() |
|
|
|
program.apiPrefix = program.apiPrefix || '/api/' |
|
|
|
program.apiPrefix = program.apiPrefix || '/api/' |
|
|
|
program.readOnly = program.readOnly || false; |
|
|
|
program.readOnly = program.readOnly || false; |
|
|
|