22 lines
278 B
Bash
Executable file
22 lines
278 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
COMMAND=$1 && shift 1
|
|
|
|
case "$COMMAND" in
|
|
'start-worker' )
|
|
echo "Starting Worker..."
|
|
yarn worker
|
|
;;
|
|
|
|
'verify-jobs' )
|
|
echo "Starting jobs verification..."
|
|
yarn verify:jobs
|
|
;;
|
|
|
|
* )
|
|
echo "Unknown command"
|
|
;;
|
|
esac
|
|
|
|
exec "$@"
|