build real for debug
This commit is contained in:
+2
-1
@@ -22,7 +22,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "GENERATE_SOURCEMAP=false react-scripts build -e .env.production",
|
"build": "react-scripts start",
|
||||||
|
"build_real": "GENERATE_SOURCEMAP=false react-scripts build -e .env.production",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,20 +17,21 @@ elif [ $NODE_ENV = "qa" -o $NODE_ENV = "test" ]; then
|
|||||||
npm run start -- --host
|
npm run start -- --host
|
||||||
else
|
else
|
||||||
# build the app and serve it via nginx
|
# build the app and serve it via nginx
|
||||||
echo "Temporary to fix build Production build bug"
|
echo "Production build"
|
||||||
echo "QA build"
|
|
||||||
export NODE_ENV="test"
|
|
||||||
npm install --legacy-peer-deps
|
npm install --legacy-peer-deps
|
||||||
npm run start -- --host
|
npm run build
|
||||||
|
# Testing sometimes
|
||||||
# # build the app and serve it via nginx
|
# npm run start
|
||||||
# echo "Production build"
|
nginx -g 'daemon off;' -c /usr/src/app/nginx.conf
|
||||||
# npm install --legacy-peer-deps
|
nginx -c /usr/src/app/nginx.conf
|
||||||
# npm run build
|
|
||||||
# # Testing sometimes
|
|
||||||
# # npm run start
|
|
||||||
# nginx -g 'daemon off;' -c /usr/src/app/nginx.conf
|
|
||||||
# nginx -c /usr/src/app/nginx.conf
|
|
||||||
|
|
||||||
|
# build the app and serve it via nginx
|
||||||
|
echo "Production build"
|
||||||
|
npm install --legacy-peer-deps
|
||||||
|
npm run build
|
||||||
|
# Testing sometimes
|
||||||
|
# npm run start
|
||||||
|
nginx -g 'daemon off;' -c /usr/src/app/nginx.conf
|
||||||
|
nginx -c /usr/src/app/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user