Attempt fix

This commit is contained in:
tokslaw7
2023-04-26 11:40:51 +00:00
parent 03ca576e16
commit 24a5b8e785
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ services:
volumes:
- ./:/usr/src/app
- ./src/:/usr/src/app/src
- ./run.sh:/usr/src/app/run.sh
extra_hosts:
- backend.wrenchboard.api.live:10.10.33.15
- backend.wrenchboard.api.test:10.10.33.15
+2
View File
@@ -6,9 +6,11 @@ export NODE_ENV="${NODE_ENV:-development}"
if [ $NODE_ENV == "development" ]; then
# this runs webpack-dev-server with hot reloading
npm install --legacy-peer-deps
npm start
else
# build the app and serve it via nginx
npm install --legacy-peer-deps
npm run build
nginx -g 'daemon off;' -c /usr/src/app/nginx.conf
nginx -c /usr/src/app/nginx.conf