reprohack-hq icon indicating copy to clipboard operation
reprohack-hq copied to clipboard

Shiny app deploy instructions: send the .secrets files & folder

Open benmarwick opened this issue 5 years ago • 1 comments

This is all fantastic, thank you very much for preparing such a comprehensive resource for organising and running this activity! I'm pitching a reprohack to the UW eScience community for the Winter quarter, and have been studying your materials in preparation for when we set a date.

When I deployed my Shiny app, I found that I didn't have an .httr-oauth file, but I had a .secrets file in my repo. I needed to ensure that got sent to the Shiny server (instead of the .httr-oauth file) to make it all work. Not sure it that's because I'm doing something wrong here, or there are multiple ways that Shiny works?

benmarwick avatar Dec 16 '19 09:12 benmarwick

So sorry for the late reply! For some reason email notification was turned off for me so I've only just seen this! Hope I'm not too late.

So, if I understand correctly, this is a slightly annoying feature of the push-button deployment of shiny in that it doesn't allow you to select hidden files through the gui file upload selector. What I do is I actually deploy the apps programmatically, including the file names I want deployed in the command, eg in your case I would use:

rsconnect::deployApp(appName = "ReproHack_UW_eScience",
               appTitle = "YOUR_EVENT_TITLE",
               account = "YOUR_ACCOUNT", appFiles = c("index.Rmd", ".secrets", "reprohack.css"))

annakrystalli avatar Jan 13 '20 16:01 annakrystalli