Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a landing page #3

Merged
merged 2 commits into from
Jun 12, 2021
Merged

Add a landing page #3

merged 2 commits into from
Jun 12, 2021

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.

1 participant