Skip to content

CrumpLab/testShinyHeroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

testShinyHeroku

testing deploying a shiny app to heroku, notes to self

  1. Get a heroku account
  2. Create a new app
  3. Choose deployment method Github
  4. Allow heroku to access Github
  5. Under settings add buildpack for R

http://github.com/virtualstaticvoid/heroku-buildpack-r.git#heroku-16

More info about the buildpack here

  1. Create a new github repository for the shiny app
  2. 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)
)

  1. Create an app.R file (or use the default one provided by Heroku)
  2. push to github repo
  3. Deploy branch on Heroku
  4. view app

About

testing deploying a shiny app to heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages