deploy_app | R Documentation |
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.
deploy_app( env = "production", deployed_dir_name, instance_name, project_id, project_zone, gcloud = NULL, app_dir = "shiny_app" )
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". |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.