blob: ae38c619d4180d664214f356067e56a199cf8154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/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)"
|