diff --git a/run.sh b/run.sh index 27b6203..47fce94 100755 --- a/run.sh +++ b/run.sh @@ -4,12 +4,17 @@ set -x export NODE_ENV="${NODE_ENV:-development}" -if [ $NODE_ENV == "development" ]; then +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 +elif [ $NODE_ENV = "qa" -o $NODE_ENV = "test" ]; then + echo "QA build" + export NODE_ENV="test" + npm install --legacy-peer-deps + npm start else # build the app and serve it via nginx echo "Production build"