entrypoint.sh 533 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. COMMAND=$1 && shift 1
  4. case "$COMMAND" in
  5. 'start-local' )
  6. echo "Building the project..."
  7. yarn workspace @standardnotes/api-gateway build
  8. echo "Starting Web..."
  9. yarn workspace @standardnotes/api-gateway start
  10. ;;
  11. 'start-web' )
  12. echo "Starting Web..."
  13. yarn workspace @standardnotes/api-gateway start
  14. ;;
  15. 'report' )
  16. echo "Starting Usage Report Generation..."
  17. yarn workspace @standardnotes/api-gateway report
  18. ;;
  19. * )
  20. echo "Unknown command"
  21. ;;
  22. esac
  23. exec "$@"