entrypoint.sh 210 B

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