Skip to content

RMHogervorst/testshiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto deploying an app to shinyapps.io

This is the demo shiny app and is very lame, but the major point is the github actions that are used here to deploy after each commit in main/master. and ends up at https://rmhogervorst.shinyapps.io/mastershiny/ AND it deploys at every PR and pushes to a different app. https://rmhogervorst.shinyapps.io/testshiny/

This current version is pretty ugly, but it works.

In your github repo set up your secrets SHINY_ACC_NAME, TOKEN,SECRET,MASTERNAME, and TESTNAME.

In your local .Renviron file

SHINY_ACC_NAME="youraccountname"
TOKEN="atokenyougotfromshinyapps.io"
SECRET="asecretyourecievedfromshinyapps.io"
MASTERNAME="thiswillbethelastpartoftheurl"
TESTNAME="thiswillbethelastpartoftheurl"

Your master/main url will be https://{SHINY_ACC_NAME}.shinyapps.io/{MASTERNAME}/ and for PRs the URL will be https://{SHINY_ACC_NAME}.shinyapps.io/{TESTNAME}/

Set secrets in github in repository secrets

test docker image locally with

IMAGENAME=<NAMETHISSOMETHING>
docker build -t $IMAGENAME . 
docker run --env-file .Renviron $IMAGENAME

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages