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
+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