testing deploying a shiny app to heroku, notes to self
- Get a heroku account
- Create a new app
- Choose deployment method Github
- Allow heroku to access Github
- Under settings add buildpack for R
http://github.com/virtualstaticvoid/heroku-buildpack-r.git#heroku-16
More info about the buildpack here
- Create a new github repository for the shiny app
- Create a run.R file containing the following:
library(shiny)
port <- Sys.getenv('PORT')
shiny::runApp(
appDir = getwd(),
host = '0.0.0.0',
port = as.numeric(port)
)
- Create an app.R file (or use the default one provided by Heroku)
- push to github repo
- Deploy branch on Heroku
- view app