unplugged-system/external/rappor/apps/rappor-sim/run_app.sh

16 lines
343 B
Bash
Executable File

#!/bin/sh
#
# Run the Shiny app in this directory.
#
# Usage:
# ./run_app.sh [port]
app_dir=$(dirname $0)
port=${1:-6788}
# Needed by source.rappor in analysis/R/*.R
export RAPPOR_REPO=../../
# host= makes it serve to other machines, not just localhost.
exec R --vanilla --slave -e "shiny::runApp('$app_dir', host='0.0.0.0', port=$port)"