dockerfile/examples/standardnotes/official-src/server-main/packages/syncing-server/docker/entrypoint.sh

23 lines
336 B
Bash
Executable File

#!/bin/sh
set -e
COMMAND=$1 && shift 1
case "$COMMAND" in
'start-web' )
echo "[Docker] Starting Web..."
exec node docker/entrypoint-server.js
;;
'start-worker' )
echo "[Docker] Starting Worker..."
exec node docker/entrypoint-worker.js
;;
* )
echo "[Docker] Unknown command"
;;
esac
exec "$@"