when building in development environment the docker container contains the built files, but files are read from local harddrive where the build folder is not present. We mount a drive for the build folder in development mode.

This happens since we always use the built variant of the database project since the table contains the filename - which then varies between js & ts
This commit is contained in:
Ulf Gebhardt 2021-08-24 18:01:22 +02:00
parent 996202a6bd
commit ed742095c2
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -58,6 +58,7 @@ services:
# This makes sure the docker container has its own node modules.
# Therefore it is possible to have a different node version on the host machine
- database_node_modules:/app/node_modules
- database_build:/app/build
# bind the local folder to the docker to allow live reload
- ./database:/app
@ -149,4 +150,5 @@ volumes:
frontend_node_modules:
backend_node_modules:
database_node_modules:
database_build:
login_build_ubuntu_3.1: