forked from MapComplete/MapComplete
Docs: update docs and status page for pg_tile_server
This commit is contained in:
parent
de782d7356
commit
cc28932534
2 changed files with 40 additions and 3 deletions
|
@ -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
|
||||
->
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { Store, Stores, UIEventSource } from "../../Logic/UIEventSource"
|
||||
import { ImmutableStore, Store, Stores, UIEventSource } from "../../Logic/UIEventSource"
|
||||
import StatusIcon from "./StatusIcon.svelte"
|
||||
import type { MCService } from "./MCService"
|
||||
import ServiceIndicator from "./ServiceIndicator.svelte"
|
||||
|
@ -203,6 +203,29 @@
|
|||
})
|
||||
}
|
||||
|
||||
{
|
||||
const summaryTileServer = Constants.VectorTileServer
|
||||
// "mvt_layer_server": "https://cache.mapcomplete.org/public.{type}_{layer}/{z}/{x}/{y}.pbf",
|
||||
const status = testDownload(Utils.SubstituteKeys(summaryTileServer, {
|
||||
type: "pois",
|
||||
layer: "food",
|
||||
z: 14,
|
||||
x: 8848,
|
||||
y: 5828
|
||||
}))
|
||||
services.push({
|
||||
name: summaryTileServer,
|
||||
status: status.mapD((s) => {
|
||||
if (s["error"]) {
|
||||
return "offline"
|
||||
}
|
||||
return "online"
|
||||
}),
|
||||
message: new ImmutableStore("See SettingUpPSQL.md to fix")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
const s = Constants.countryCoderEndpoint
|
||||
const status = testDownload(s + "/0.0.0.json")
|
||||
|
|
Loading…
Reference in a new issue