From 7f173d6c4f69c18a888264378824b4b766d6ff1c Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 17 Feb 2022 11:16:37 +0000 Subject: [PATCH] revise data loading section --- docs/setup-dev-environment.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 7ece82f7..5959cd54 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -157,7 +157,18 @@ local repository, so that it can read from the `package.json` file. `cd ./colouring-london/app && npm install` -## Including test data +## Loading the data + +
+ +With a database dump + +
+ +
+ +With test data + Run the following two sections if you wish to load test buildings into the application from OpenStreetMaps (OSM). @@ -220,12 +231,12 @@ psql -d < ../migrations/002.index-geometries.up.sql psql -d < ../migrations/003.index-buildings.up.sql ``` -## Run database migrations +#### Re-run database migrations Re-run the remaining migrations in `../migrations` to create the rest of the database structure. `ls ./colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d < $migration; done;` - +
## Running the application