mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
close child process - api
This commit is contained in:
parent
933f29afda
commit
44c19ad277
@ -5,6 +5,7 @@ const cors = require('cors');
|
||||
const io = require('socket.io');
|
||||
const fs = require('fs');
|
||||
const findFreePort = require('find-free-port');
|
||||
const childProcessChecker = require('./utility/childProcessChecker');
|
||||
|
||||
const useController = require('./utility/useController');
|
||||
const socket = require('./utility/socket');
|
||||
@ -44,6 +45,8 @@ function start(argument = null) {
|
||||
}
|
||||
|
||||
if (argument == '--dynport') {
|
||||
childProcessChecker();
|
||||
|
||||
findFreePort(53911, function (err, port) {
|
||||
server.listen(port, () => {
|
||||
console.log(`DbGate API listening on port ${port}`);
|
||||
|
Loading…
Reference in New Issue
Block a user