From cc289325345ffcfea08dca083135789dc1c87394 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 13 Dec 2024 14:41:28 +0100 Subject: [PATCH] Docs: update docs and status page for pg_tile_server --- Docs/SettingUpPSQL.md | 18 ++++++++++++++++-- src/UI/Status/StatusGUI.svelte | 25 ++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/Docs/SettingUpPSQL.md b/Docs/SettingUpPSQL.md index 485c73197..3c9cb19b7 100644 --- a/Docs/SettingUpPSQL.md +++ b/Docs/SettingUpPSQL.md @@ -67,8 +67,10 @@ pg_tileserv can be downloaded here: https://github.com/CrunchyData/pg_tileserv In the directory where it is downloaded (e.g. `~/data`), run +First, look up the latest suitable database on https://mapcomplete.org/status + ```` -export DATABASE_URL=postgresql://user:password@localhost:5444/osm-poi +export DATABASE_URL=postgresql://user:password@localhost:5444/osm-poi.{date-of-suitable-database} nohup ./pg_tileserv >> pg_tileserv.log & ```` @@ -84,7 +86,19 @@ map.addSource("drinking_water", { `npm run summary-server` in the git repo +# Connecting to the database + +Setup the SSH-tunnel: + +`ssh folky.me +ssh -L 5444:127.0.0.1:5444 lain` + +Open a second terminal: + +`ssh -L 5444:127.0.0.1:5444 folky.me` ` + +Connect pgAdmin + # Rebooting: -> Restart the docker container --> diff --git a/src/UI/Status/StatusGUI.svelte b/src/UI/Status/StatusGUI.svelte index 079b641fe..50c80792f 100644 --- a/src/UI/Status/StatusGUI.svelte +++ b/src/UI/Status/StatusGUI.svelte @@ -1,5 +1,5 @@