This commit is contained in:
Jan Prochazka 2022-03-24 14:02:02 +01:00
parent ec7641dbd6
commit 93552585f7
3 changed files with 6 additions and 5 deletions

View File

@ -88,7 +88,7 @@ function start() {
app.use(getExpressPath('/'), express.static('/home/dbgate-docker/public'));
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);
} else if (platformInfo.isNpmDist) {
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../dbgate-web/public')));
@ -99,7 +99,7 @@ function start() {
),
}).then(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) {
@ -108,7 +108,7 @@ function start() {
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../web/public')));
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);
} else {
app.get(getExpressPath('/'), (req, res) => {
@ -116,7 +116,7 @@ function start() {
});
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);
}

View File

@ -6,7 +6,7 @@ DbGate is fast and easy to use database administration tool for MySQL, PostgreSQ
## Install using npm
```sh
npm install -g dbgate-servee
npm install -g dbgate-serve
```
After installing, you can run dbgate with command:

View File

@ -38,6 +38,7 @@ changePackageFile('packages/tools', json.version);
changePackageFile('packages/web', json.version);
changePackageFile('packages/datalib', json.version);
changePackageFile('packages/dbgate', json.version);
changePackageFile('packages/serve', json.version);
changePackageFile('packages/filterparser', json.version);
changePackageFile('packages/query-splitter', json.version);