Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:rocker-org/shiny
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed May 2, 2019
2 parents decfb85 + 6316c34 commit 4240fbe
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions shiny-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
mkdir -p /var/log/shiny-server
chown shiny.shiny /var/log/shiny-server

if [ "$APPLICATION_LOGS_TO_STDOUT" = "false" ];
if [ "$APPLICATION_LOGS_TO_STDOUT" != "false" ];
then
exec shiny-server 2>&1
else
# start shiny server in detached mode
exec shiny-server 2>&1 &
# push the "real" application logs to stdout with xtail in detached mode
exec xtail /var/log/shiny-server/ &
fi

# push the "real" application logs to stdout with xtail
exec xtail /var/log/shiny-server/
fi
# start shiny server
exec shiny-server 2>&1

0 comments on commit 4240fbe

Please sign in to comment.