mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 21:26:00 +00:00
start api => listen api
This commit is contained in:
@@ -8,4 +8,4 @@ then
|
||||
echo "$HOST_IP $HOST_DOMAIN" >> /etc/hosts
|
||||
fi
|
||||
|
||||
node bundle.js --start-api
|
||||
node bundle.js --listen-api
|
||||
|
||||
@@ -52,11 +52,11 @@
|
||||
"uuid": "^3.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "env-cmd node src/index.js --start-api",
|
||||
"start:portal": "env-cmd -f env/portal/.env node src/index.js --start-api",
|
||||
"start:singledb": "env-cmd -f env/singledb/.env node src/index.js --start-api",
|
||||
"start:filedb": "env-cmd node src/index.js /home/jena/test/chinook/Chinook.db --start-api",
|
||||
"start:singleconn": "env-cmd node src/index.js --server localhost --user root --port 3307 --engine mysql@dbgate-plugin-mysql --password test --start-api",
|
||||
"start": "env-cmd node src/index.js --listen-api",
|
||||
"start:portal": "env-cmd -f env/portal/.env node src/index.js --listen-api",
|
||||
"start:singledb": "env-cmd -f env/singledb/.env node src/index.js --listen-api",
|
||||
"start:filedb": "env-cmd node src/index.js /home/jena/test/chinook/Chinook.db --listen-api",
|
||||
"start:singleconn": "env-cmd node src/index.js --server localhost --user root --port 3307 --engine mysql@dbgate-plugin-mysql --password test --listen-api",
|
||||
"ts": "tsc",
|
||||
"build": "webpack"
|
||||
},
|
||||
|
||||
@@ -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