mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
bc153ee42e
commit
08244ab4b2
@ -13,6 +13,8 @@ services:
|
|||||||
target: build-and-test
|
target: build-and-test
|
||||||
volumes:
|
volumes:
|
||||||
- ./webapp:/nitro-web
|
- ./webapp:/nitro-web
|
||||||
|
environment:
|
||||||
|
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
|
||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@ -14,7 +14,6 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
volumes:
|
volumes:
|
||||||
- webapp_node_modules:/nitro-web/node_modules
|
- webapp_node_modules:/nitro-web/node_modules
|
||||||
- webapp_nuxt_folder:/nitro-web/.nuxt
|
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
@ -60,7 +59,6 @@ networks:
|
|||||||
hc-network:
|
hc-network:
|
||||||
volumes:
|
volumes:
|
||||||
webapp_node_modules:
|
webapp_node_modules:
|
||||||
webapp_nuxt_folder:
|
|
||||||
backend_node_modules:
|
backend_node_modules:
|
||||||
neo4j_data:
|
neo4j_data:
|
||||||
uploads:
|
uploads:
|
||||||
|
|||||||
2
webapp/.gitignore
vendored
2
webapp/.gitignore
vendored
@ -61,8 +61,6 @@ typings/
|
|||||||
|
|
||||||
# nuxt.js build output
|
# nuxt.js build output
|
||||||
.nuxt
|
.nuxt
|
||||||
# also the build output in docker container
|
|
||||||
.nuxt-dist
|
|
||||||
|
|
||||||
# Nuxt generate
|
# Nuxt generate
|
||||||
dist
|
dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user