mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 23:06:00 +00:00
start api => listen api
This commit is contained in:
@@ -10,7 +10,7 @@ if (processArgs.startProcess) {
|
||||
module.start();
|
||||
}
|
||||
|
||||
if (processArgs.startApi) {
|
||||
if (processArgs.listenApi) {
|
||||
const main = require('./main');
|
||||
main.start();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const startProcess = getNamedArg('--start-process');
|
||||
const isForkedApi = process.argv.includes('--is-forked-api');
|
||||
const pluginsDir = getNamedArg('--plugins-dir');
|
||||
const workspaceDir = getNamedArg('--workspace-dir');
|
||||
const startApi = process.argv.includes('--start-api');
|
||||
const listenApi = process.argv.includes('--listen-api');
|
||||
|
||||
function getPassArgs() {
|
||||
const res = [];
|
||||
@@ -31,5 +31,5 @@ module.exports = {
|
||||
getPassArgs,
|
||||
pluginsDir,
|
||||
workspaceDir,
|
||||
startApi,
|
||||
listenApi,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user