fixed docker app

This commit is contained in:
Jan Prochazka
2021-04-01 13:13:41 +02:00
parent 943544958a
commit acdba0c52c
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@@ -13,6 +13,8 @@ build
dist
app/packages/web/public
docker/public
docker/bundle.js
# misc
.DS_Store

View File

@@ -79,9 +79,9 @@ function start(argument = null) {
app.use('/runners/data', express.static(rundir()));
if (fs.existsSync('/home/dbgate-docker/build')) {
if (fs.existsSync('/home/dbgate-docker/public')) {
// server static files inside docker container
app.use(express.static('/home/dbgate-docker/build'));
app.use(express.static('/home/dbgate-docker/public'));
} else {
if (argument != 'startNodeWeb') {
app.get('/', (req, res) => {