mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 20:46:01 +00:00
refactor - backend single bundle
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
const connections = require('./connections');
|
||||
const socket = require('../utility/socket');
|
||||
const { fork } = require('child_process');
|
||||
@@ -20,7 +19,7 @@ module.exports = {
|
||||
const existing = this.opened.find(x => x.conid == conid);
|
||||
if (existing) return existing;
|
||||
const connection = await connections.get({ conid });
|
||||
const subprocess = fork(`${__dirname}/../proc/serverConnectionProcess.js`);
|
||||
const subprocess = fork(process.argv[1], ['serverConnectionProcess']);
|
||||
const newOpened = {
|
||||
conid,
|
||||
subprocess,
|
||||
|
||||
Reference in New Issue
Block a user