diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b0b067 --- /dev/null +++ b/.gitattributes @@ -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 + diff --git a/run.sh b/run.sh index 73d7abb..35de5f6 100755 --- a/run.sh +++ b/run.sh @@ -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