Skip to content

Conversation

@asbates
Copy link
Owner

@asbates asbates commented Jun 12, 2021

Adds a landing page at root url.

Notes for future self:

When serving static files at '/', the docs endpoint doesn't work (returns 404). This is being resolved by the plumber team (rstudio/plumber#748). For now, I just don't add docs.

On initial deployment, I was able to access landing page and '/available'. But '/data' wasn't working. After figuring out how to access the plumber logs I was getting the error <simpleError: user is not allowed to do action [createIndex] on [data.fs.chunks]>. This is an issue with the underlying C library for mongolite. See jeroen/mongolite#190. I was able to resolve this by setting the server account to allow both read and write access to the MongoDB database. Before, it was read only.

@asbates asbates merged commit 4f4f0c9 into main Jun 12, 2021
@asbates asbates deleted the landing-page branch June 12, 2021 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants