entrypoint.dev.sh 375 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. # Install node modules if not found
  4. if [ ! -d node_modules ]; then
  5. npm install
  6. fi
  7. if [ "${SERVER_DEBUG}" = "true" ]; then
  8. export INSPECT_BRK="--inspect-brk=0.0.0.0:${SERVER_DEBUG_PORT:-9228}"
  9. else
  10. export INSPECT_BRK=""
  11. fi
  12. if [ "${APP_ENV}" = "development" ]; then
  13. npm run dev
  14. else
  15. npm run compile
  16. npm run migrate
  17. npm start
  18. fi