From fedb2f0aec1c0b86afee709cdf381fadb30d8419 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 17 Feb 2022 11:28:19 +0000 Subject: [PATCH] dump file instructions --- docs/setup-dev-environment.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 5959cd54..4f106c2b 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -160,15 +160,28 @@ local repository, so that it can read from the `package.json` file. ## Loading the data
- -With a database dump - + With a database dump + +If you are a developer on the Colouring London project (or another Colouring Cities project), you may have a production database (or staging etc) that you wish to duplicate in your development environment. + +Log into the environment where your production database is kept and create a dump file from the db. + +``` +pg_dump > +``` + +You should then download the file to the machine where you are setting up your development environment. If you are using Virtualbox, you could host share the dump file with the VM via a shared folder (e.g. [see these instructions for Mac](https://medium.com/macoclock/share-folder-between-macos-and-ubuntu-4ce84fb5c1ad)). + +In your Ubuntu installation where you have been running these setup steps (e.g. Virtualbox VM), you can then recrate the db like so. + +``` +psql < +``` +
- -With test data - + With test data Run the following two sections if you wish to load test buildings into the application from OpenStreetMaps (OSM).