Skip to main content

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

  1. Get your file onto the server.
    This is usually done with SFTP
  2. 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.
  3. Copy and overwrite the old shiny app (sudo cp)
    Shiny Apps must have one of the following filenames: app.R, both server.R and ui.R, or index.Rmd depending on what type of app they have written. You may need to rename the file.
  4. Reload shiny server
    systemctl reload shiny-server
    

That should be it.