deploy_app: Deploy Shiny application

View source: R/deploy_app.R

deploy_appR Documentation

Deploy Shiny application

Description

Deploy a Shiny application to a GCP VM instance (Must have gcloud on local machine). Currently, this function MUST be run with the application in a 'shiny_app' directory, & that directory should be in the Current Working Directory.

Usage

deploy_app(
  env = "production",
  deployed_dir_name,
  instance_name,
  project_id,
  project_zone,
  gcloud = NULL,
  app_dir = "shiny_app"
)

Arguments

env

Character string name of configuration environment in 'config.yml' to use for deployed app. e.g. "production" or "default".

deployed_dir_name

Name of the directory in the VM instance for this app

instance_name

The name of the VM instance

project_id

The name of the GCP project for this VM instance

project_zone

The zone of the GCP project for this VM instance

gcloud

Absolute path for gcloud CLI (Ex: '/usr/local/bin/google-cloud-sdk/bin')

app_dir

the local directory containing the shiny app. Defaults to "shiny_app".

Examples


## Not run: 
  deploy_app(
    env = 'production',
    deployed_dir_name = 'example_app',
    instance_name = 'instance-1',
    project_id = 'gcp-project-id',
    project_zone = 'us-east1-d',
    gcloud = '/usr/local/bin/google-cloud-sdk/bin'
  )

## End(Not run)



Tychobra/tychobratools documentation built on April 12, 2022, 12:29 a.m.