-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up Shiny Server on Azure #21
Comments
Getting StartedCreate admin user
Use a really, really good password that you save somewhere and have no chance of remembering. Then copy your local ssh key into
Then force the use of ssh keys for remote access. In
Then add a fancy login message to
I also turned off the Ubuntu login new service because they're annoying.
Add other usersOne-liner to request SSH keys from others (source)
Setup SSH
Install nginx
Install Docker
Install R
https://www.rstudio.com/products/shiny/download-server/
Add CRAN's Ubuntu Public Key
Install global packages
These packages will be installed and available for all users, but they will be able to install different (or different versions of these) packages locally. We're just saving them the hassle of re-installing Install Shiny ServerInstall Shiny Server
Setup
|
Dockerizing Shiny Apps
Can also use
Iterate: build image, some package installation fails because missing dependency, add deps or adjust Dockerfile, repeat.
Run your app, then watch the logs
If you need to enter the container to debug
drops you into the container as root. If things are badly broken, or for debugging/developing the app directly in RStudio within a similar container, comment out the last three lines, and change
and then rebuild and run
This might take a little while to rebuild the intermediate containers, but you'll end up with an almost identical environment with RStudio. Go to |
Monitoring shiny apps: https://www.rcharlie.com/post/shiny-monitor/ |
Taking over for #10 (some resources there will also be helpful).
The text was updated successfully, but these errors were encountered: