aboutsummaryrefslogtreecommitdiff
path: root/apps/rappor-analysis/run_app.sh
blob: b6057306783c2bcaf20c80d7de23110aa92b25b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# Run the Shiny app in this directory.
#
# Usage:
#   ./run_app.sh [port]

app_dir=$(dirname $0)
port=${1:-6789}

# 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)"