Fix & conversion rules

This commit is contained in:
2023-05-01 04:59:04 +08:00
parent ebedcdafcf
commit b911f65535
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.jsx text
*.js text
*.css text
# Declare files that will always have CRLF line endings on checkout.
*.md text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.sh binary
+2
View File
@@ -6,10 +6,12 @@ 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
nginx -g 'daemon off;' -c /usr/src/app/nginx.conf