sourcecred/scripts/docker-entrypoint.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
426 B
Bash
Raw Normal View History

#!/bin/bash
case "$1" in
# Offer a shortcut for load + dev-server
"dev-preview")
shift
node /code/bin/sourcecred.js load "$@" || exit 1
exec yarn -s start --host 0.0.0.0
;;
# Expose several webpack operations
"dev-server")
exec yarn -s start --host 0.0.0.0
;;
"build")
shift
exec yarn -s build "$@"
;;
# Everything else, pass on to sourcecred.js
*)
exec node /code/bin/sourcecred.js "$@"
;;
esac