Automate setting up a cache server

This commit is contained in:
Pieter Vander Vennet 2024-08-19 19:09:16 +02:00
parent 752266ee48
commit 6f85db291a
6 changed files with 297 additions and 123 deletions

View file

@ -13,12 +13,12 @@ Increase the max number of connections. osm2pgsql needs connection one per table
- Validate with `cat /var/lib/postgresql/data/postgresql.conf | grep "max_connections"`
- `sudo docker restart <ID>`
> The following steps are also automated in `update.sh`
## Create a database in the SQL-server
Then, connect to this database with PGAdmin, create a database within it.
- Activate extensions `Postgis` and `HSTore` (right click > Create > Extension):
Run `vite-node scripts/osm2pgsql/createNewDatabase.ts -- YYYY-MM-DD` to create a new, appropriate, database
## Create export scripts for every layer