Skip to content

Update vignette hosting.qmd #77

Open

Description

@paul-carteron

Hi,

While following the vignette on Docker hosting (https://plumber2.posit.co/articles/hosting.html#docker),
I tried to generate a _server.yml file using the recommended code:

# Create _server.yml in the working directory
create_server_yml(
  "api.R",
  "routes/users.R",
  "routes/data.R",
  options = list(docs = TRUE, port = 8000, host = "0.0.0.0")
)

However, the options argument no longer exists in the current implementation of create_server_yml() (see:

create_server_yml <- function(
...,
path = ".",
constructor = NULL,
freeze_opt = TRUE
) {
).

As a result, the example from the vignette no longer works with the current version of plumber2.

It would be helpful to update the documentation so that the example code isconsistent with the current API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions