entrypoint.sh 457 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. set -e
  3. COMMAND=$1 && shift 1
  4. case "$COMMAND" in
  5. 'start-local')
  6. echo "Starting Web in Local Mode..."
  7. yarn workspace @standardnotes/files-server start:local
  8. ;;
  9. 'start-web' )
  10. echo "Starting Web..."
  11. yarn workspace @standardnotes/files-server start
  12. ;;
  13. 'start-worker' )
  14. echo "Starting Worker..."
  15. yarn workspace @standardnotes/files-server worker
  16. ;;
  17. * )
  18. echo "Unknown command"
  19. ;;
  20. esac
  21. exec "$@"