dbgate/packages/serve/bin/dbgate-serve.js

13 lines
320 B
JavaScript
Raw Normal View History

2021-02-07 16:24:45 +00:00
#!/usr/bin/env node
2021-04-17 07:21:22 +00:00
const path = require('path');
2022-03-13 16:14:04 +00:00
require('dotenv').config();
2021-02-07 16:24:45 +00:00
2022-03-24 08:00:51 +00:00
global.API_PACKAGE = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.PLUGINS_DIR = path.dirname(global.API_PACKAGE);
global.IS_NPM_DIST = true;
2021-02-14 10:33:53 +00:00
2021-04-17 16:20:00 +00:00
const dbgateApi = require('dbgate-api');
2021-04-17 14:38:10 +00:00
dbgateApi.getMainModule().start();