bootstrap.sh 280 B

123456789
  1. #!/bin/bash
  2. if [ "$FRONTEND_MODE" == "prod" ] ; then
  3. cd /opt/app ; npm run $FRONTEND_MODE
  4. nginx -c /opt/app/$FRONTEND_MODE.nginx.conf -g "daemon off;"
  5. elif [ "$FRONTEND_MODE" == "dev" ] ; then
  6. nginx -c /opt/app/$FRONTEND_MODE.nginx.conf
  7. cd /opt/app; npm run $FRONTEND_MODE
  8. fi