mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +00:00
fixes
This commit is contained in:
@@ -88,7 +88,7 @@ function start() {
|
|||||||
app.use(getExpressPath('/'), express.static('/home/dbgate-docker/public'));
|
app.use(getExpressPath('/'), express.static('/home/dbgate-docker/public'));
|
||||||
|
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
console.log('DbGate API listening on port', port);
|
console.log('DbGate API listening on port (docker build)', port);
|
||||||
server.listen(port);
|
server.listen(port);
|
||||||
} else if (platformInfo.isNpmDist) {
|
} else if (platformInfo.isNpmDist) {
|
||||||
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../dbgate-web/public')));
|
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../dbgate-web/public')));
|
||||||
@@ -99,7 +99,7 @@ function start() {
|
|||||||
),
|
),
|
||||||
}).then(port => {
|
}).then(port => {
|
||||||
server.listen(port, () => {
|
server.listen(port, () => {
|
||||||
console.log(`DbGate API listening on port ${port}`);
|
console.log(`DbGate API listening on port ${port} (NPM build)`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (process.env.DEVWEB) {
|
} else if (process.env.DEVWEB) {
|
||||||
@@ -108,7 +108,7 @@ function start() {
|
|||||||
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../web/public')));
|
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../web/public')));
|
||||||
|
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
console.log('DbGate API & web listening on port', port);
|
console.log('DbGate API & web listening on port (dev web build)', port);
|
||||||
server.listen(port);
|
server.listen(port);
|
||||||
} else {
|
} else {
|
||||||
app.get(getExpressPath('/'), (req, res) => {
|
app.get(getExpressPath('/'), (req, res) => {
|
||||||
@@ -116,7 +116,7 @@ function start() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
console.log('DbGate API listening on port', port);
|
console.log('DbGate API listening on port (dev API build)', port);
|
||||||
server.listen(port);
|
server.listen(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ DbGate is fast and easy to use database administration tool for MySQL, PostgreSQ
|
|||||||
|
|
||||||
## Install using npm
|
## Install using npm
|
||||||
```sh
|
```sh
|
||||||
npm install -g dbgate-servee
|
npm install -g dbgate-serve
|
||||||
```
|
```
|
||||||
|
|
||||||
After installing, you can run dbgate with command:
|
After installing, you can run dbgate with command:
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ changePackageFile('packages/tools', json.version);
|
|||||||
changePackageFile('packages/web', json.version);
|
changePackageFile('packages/web', json.version);
|
||||||
changePackageFile('packages/datalib', json.version);
|
changePackageFile('packages/datalib', json.version);
|
||||||
changePackageFile('packages/dbgate', json.version);
|
changePackageFile('packages/dbgate', json.version);
|
||||||
|
changePackageFile('packages/serve', json.version);
|
||||||
changePackageFile('packages/filterparser', json.version);
|
changePackageFile('packages/filterparser', json.version);
|
||||||
changePackageFile('packages/query-splitter', json.version);
|
changePackageFile('packages/query-splitter', json.version);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user