bootstrap.sh 282 B

123456789
  1. #!/bin/bash
  2. if [ "$FRONTEND_MODE" == "prod" ] ; then
  3. cd /opt/app ; yarn 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; yarn run $FRONTEND_MODE
  8. fi