mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-09 20:26:02 +00:00
08408a9706
Adding docker container recipe and instructions in README for running sourcecred Signed-off-by: Vanessa Sochat <vsochat@stanford.edu> Test plan: @decentralion verified that the commands work on a fresh setup prior to merging.
23 lines
426 B
Bash
Executable File
23 lines
426 B
Bash
Executable File
#!/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
|