Learn R Programming

buoyant (version 0.1.0)

do_remove_server: Remove a deployed application

Description

Removes a deployed _server.yml application from the server.

Usage

do_remove_server(droplet, path, delete = FALSE, ...)

Value

The DigitalOcean droplet

Arguments

droplet

The droplet on which to act.

path

The path/name of the application to remove.

delete

If TRUE, also deletes the application files. If FALSE, just stops and disables the service.

...

additional arguments to pass to analogsea::droplet_ssh().

Examples

Run this code
if (FALSE) {
  droplet <- analogsea::droplet(123456)

  # Stop the service but keep files
  do_remove_server(droplet, "myapp", delete = FALSE)

  # Remove the service and delete all files
  do_remove_server(droplet, "myapp", delete = TRUE)
}

Run the code above in your browser using DataLab