first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-12-04 09:26:30 -05:00
commit bf47d0e304
33 changed files with 13788 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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
# npm run build
else
# 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