22 lines
309 B
Bash
Executable file
22 lines
309 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
COMMAND=$1 && shift 1
|
|
|
|
case "$COMMAND" in
|
|
'start-web' )
|
|
echo "Starting Web..."
|
|
exec node docker/entrypoint-server.js
|
|
;;
|
|
|
|
'start-worker' )
|
|
echo "Starting Worker..."
|
|
exec node docker/entrypoint-worker.js
|
|
;;
|
|
|
|
* )
|
|
echo "Unknown command"
|
|
;;
|
|
esac
|
|
|
|
exec "$@"
|