entrypoint.dev.sh 304 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. if [ ! -d node_modules ]; then
  4. npm install
  5. fi
  6. if [ "${BACKEND_DEBUG}" = "true" ]; then
  7. export INSPECT_BRK="--inspect-brk=0.0.0.0:${BACKEND_DEBUG_PORT:-9229}"
  8. else
  9. export INSPECT_BRK=""
  10. fi
  11. if [ "${APP_ENV}" = "development" ]; then
  12. npm run dev
  13. else
  14. npm run prod
  15. fi