Skip to content

Commit

Permalink
Allow using deploy-shinyapps.R locally to rely on the specific `app…
Browse files Browse the repository at this point in the history
…Files`

* This assumes one has configured an account locally via `rsconnect::setAccountInfo()`.
  • Loading branch information
riccardoporreca committed Jan 17, 2024
1 parent 95e34d4 commit 06446f6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions deploy/deploy-shinyapps.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# deploy/deploy-shinyapps.R
# usethis::use_build_ignore("deploy")
rsconnect::setAccountInfo(
Sys.getenv("SHINYAPPS_ACCOUNT"),
Sys.getenv("SHINYAPPS_TOKEN"),
Sys.getenv("SHINYAPPS_SECRET")
)
if (!interactive()) {
rsconnect::setAccountInfo(
Sys.getenv("SHINYAPPS_ACCOUNT"),
Sys.getenv("SHINYAPPS_TOKEN"),
Sys.getenv("SHINYAPPS_SECRET")
)
}
# Add here any additional files/directories the app needs
app_files = c(
"app.R",
Expand Down

0 comments on commit 06446f6

Please sign in to comment.