Files
CHIEFSOFT\ameye 339a0063ce temporary
2024-11-20 11:52:40 -05:00

22 lines
466 B
Bash
Executable File

#!/usr/bin/env sh
set -e
set -x
export NODE_ENV="${NODE_ENV:-development}"
if [ $NODE_ENV == "development" ]; then
# this runs webpack-dev-server with hot reloading
echo "Development build"
npm install --legacy-peer-deps
npm start
else
# build the app and serve it via nginx
echo "Production build"
npm install --legacy-peer-deps
#npm run build
npm start
nginx -g 'daemon off;' -c /usr/src/app/nginx.conf
nginx -c /usr/src/app/nginx.conf
fi