Description Usage Arguments Value
View source: R/digital-ocean.R
Deploys an API from your local machine to make it available on the remote plumber server.
1 2 3 4 5 6 7 8 9 10 11 | do_deploy_api(
droplet,
path,
localPath,
port,
forward = FALSE,
docs = FALSE,
preflight,
overwrite = FALSE,
...
)
|
droplet |
The droplet on which to act. It's expected that this droplet
was provisioned using |
path |
The remote path/name of the application |
localPath |
The local path to the API that you want to deploy. The
entire directory referenced will be deployed, and the |
port |
The internal port on which this service should run. This will not
be user visible, but must be unique and point to a port that is available
on your server. If unsure, try a number around |
forward |
If |
docs |
If |
preflight |
R commands to run after |
overwrite |
if an application is already running for this |
... |
additional arguments to pass to |
The DigitalOcean droplet, but called for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.