Skip to content
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

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

Open
benmarwick opened this issue Dec 16, 2019 · 1 comment
Open

Comments

@benmarwick
Copy link

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?

@annakrystalli
Copy link
Member

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"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants