plumberDeploy
First create a Digital Ocean account. Validate using
analogsea::account().
Then configure an ssh key for your Digital Ocean account before using
methods included in this package. Use analogsea::key_create method or
see
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-account/.
Deploy an api to a new droplet
.api/plumber.R
#* @get /
function() {
Sys.Date()
}Then run this code
id <- plumberDeploy::do_provision(example = FALSE)
# About 10 minutes
plumberDeploy::do_deploy_api(id, "date", "./api/", 8000, docs = TRUE)Navigate to: [[IPADDRESS]]/date/__docs__/