Updating A Shiny App
Updating a shiny app is quite simple. You just overwrite a file and reload the server.
Files are stored in /srv/shiny-server
Procedure
- Get your file onto the server.
This is usually done with SFTP - Figure out where it is supposed to go.
A single server can have multiple shiny apps. You will need to look in/srv/shiny-server
to see where it goes. If you need more information you can also check out the apache/nginx configs to see which folder might hold the shiny app you are updating. - Copy and overwrite the old shiny app (
sudo cp
)
Shiny Apps must have one of the following filenames:app.R
, bothserver.R
andui.R
, orindex.Rmd
depending on what type of app they have written. You may need to rename the file. - Reload shiny server
systemctl reload shiny-server
That should be it.