Repository navigation
Finish the repo: production servers, README, cleanup - #13
Merged
Merged
Conversation
- Run the web UI and the tile server under gunicorn instead of Flask's and Terracotta's development servers. The UI has no request timeout, because a map builds inside the request. - Rewrite the README: what the mapserver does, how it works, that you must bring your own authentication, and hosting help from our partner Ankra. - Update .env.example: the key is used now, and the API has no /v1. - Remove dead code (listTiles.py, tiles.html), the unused web/ folder and committed .pyc files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AwkBcZCmo27zHnnRnAcKiy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The repo worked but wasn't finished. Both servers ran on development web servers, the README didn't say that you must add your own authentication, and old files were still lying around.
What changed
flask runandterracotta serve. The UI has no request timeout, because a map builds inside the request. Tile workers are set with the newterracotta.workers(default 4)..env.example: the key is used now, and the API URL no longer has/v1.listTiles.py,tiles.html), the unusedweb/folder and four committed.pycfiles.Testing
I built the image and ran it as the chart does: one container for the UI and one for Terracotta, sharing volumes.
maps/is built on startup200 image/pngwithAccess-Control-Allow-Origin: https://dash.ollebo.comhelm lintpasses, and the chart renders withTC_DRIVER_PATHand the gunicorn commanddocker compose configvalidates🤖 Generated with Claude Code
https://claude.ai/code/session_01AwkBcZCmo27zHnnRnAcKiy