fixed docker container

This commit is contained in:
Jan Prochazka
2022-03-24 09:13:33 +01:00
parent 4c411b048d
commit b0e0197346
2 changed files with 6 additions and 2 deletions

View File

@@ -86,6 +86,10 @@ function start() {
if (platformInfo.isDocker) {
// server static files inside docker container
app.use(getExpressPath('/'), express.static('/home/dbgate-docker/public'));
const port = process.env.PORT || 3000;
console.log('DbGate API listening on port', port);
server.listen(port);
} else if (platformInfo.isNpmDist) {
app.use(getExpressPath('/'), express.static(path.join(__dirname, '../../dbgate-web/public')));
getPort({