renamed package dbgate to dbgate-serve

This commit is contained in:
Jan Prochazka
2022-03-24 09:55:39 +01:00
parent 45277e34c9
commit e2308f501b
6 changed files with 68 additions and 44 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env node
const path = require('path');
require('dotenv').config();
global.API_PACKAGE = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.PLUGINS_DIR = path.dirname(global.API_PACKAGE);
global.IS_NPM_DIST = true;
const dbgateApi = require('dbgate-api');
dbgateApi.getMainModule().start();