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

How to reload layers with --no-preview flag #216

Open
gtitov opened this issue Jul 17, 2024 · 2 comments
Open

How to reload layers with --no-preview flag #216

gtitov opened this issue Jul 17, 2024 · 2 comments

Comments

@gtitov
Copy link

gtitov commented Jul 17, 2024

It is possible to trigger a refresh of list of layers by hitting the landing page URL as stated in this issue.

Is it possible to trigger the refresh when --no-preview flag is active and the landing page is not available?

@pramsey
Copy link
Collaborator

pramsey commented Jul 17, 2024

That's a good question and without looking at the code, the /index.json end point should still be available and will trigger a refresh?

@gtitov
Copy link
Author

gtitov commented Jul 17, 2024

Seems like /index.json unavailable as well if --no-preview flag is active

pg_tileserv/main.go

Lines 496 to 503 in 170cd3c

if viper.GetBool("ShowPreview") {
r.Handle("/", tileAppHandler(requestListHTML))
r.Handle("/index.html", tileAppHandler(requestListHTML))
r.Handle("/index.json", tileAppHandler(requestListJSON))
// Layer detail and demo pages
r.Handle("/{name}.html", tileAppHandler(requestPreview))
r.Handle("/{name}.json", tileAppHandler(requestDetailJSON))
}

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

No branches or pull requests

2 participants