Address @mattwr18's review here:

https://github.com/Human-Connection/Human-Connection/pull/1543#pullrequestreview-287593264

Thinking about it, I really ask myself why I did not find this solution
earlier 🙈

Of course, you don't want to share the generated `buildDir`
with the host system. If you happen to share the `webapp/` folder,
simply point NuxtJS to a build directory somewhere else. Easy!
This commit is contained in:
roschaefer 2019-09-12 22:52:14 +02:00
parent bc153ee42e
commit 08244ab4b2
3 changed files with 2 additions and 4 deletions

View File

@ -13,6 +13,8 @@ services:
target: build-and-test
volumes:
- ./webapp:/nitro-web
environment:
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
command: yarn run dev
backend:
build:

View File

@ -14,7 +14,6 @@ services:
- backend
volumes:
- webapp_node_modules:/nitro-web/node_modules
- webapp_nuxt_folder:/nitro-web/.nuxt
environment:
- HOST=0.0.0.0
- GRAPHQL_URI=http://backend:4000
@ -60,7 +59,6 @@ networks:
hc-network:
volumes:
webapp_node_modules:
webapp_nuxt_folder:
backend_node_modules:
neo4j_data:
uploads:

2
webapp/.gitignore vendored
View File

@ -61,8 +61,6 @@ typings/
# nuxt.js build output
.nuxt
# also the build output in docker container
.nuxt-dist
# Nuxt generate
dist