entrypoint.dev.sh 257 B

12345678910111213
  1. #!/bin/sh
  2. set -e
  3. if [ "${APP_ENV}" == "development" ]; then
  4. ln -sf /opt/app/nginx.dev.conf /etc/nginx/http.d/default.conf
  5. nginx
  6. npm run dev
  7. else
  8. ln -sf /opt/app/nginx.prod.conf /etc/nginx/http.d/default.conf
  9. nginx -g "daemon off;"
  10. fi