From: Sarah Hoffmann Date: Sun, 20 Dec 2020 10:53:19 +0000 (+0100) Subject: adapt instructions for creating the test db to dotenv X-Git-Tag: v3.7.0~66^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/3c7519444867cd9c6b3003c4c88729df21b8c265 adapt instructions for creating the test db to dotenv --- diff --git a/docs/develop/Development-Environment.md b/docs/develop/Development-Environment.md index 2f6f54ce..f0c36ba3 100644 --- a/docs/develop/Development-Environment.md +++ b/docs/develop/Development-Environment.md @@ -102,13 +102,20 @@ cmake $USERNAME/Nominatim make ``` -Copy the test settings: +Create a minimal test settings file: ``` -cp $USERNAME/Nominatim/test/testdb/local.php settings/ +tee .env << EOF +NOMINATIM_DATABASE_DSN="pgsql:dbname=test_api_nominatim" +NOMINATIM_USE_US_TIGER_DATA=yes +NOMINATIM_TIGER_DATA_PATH=tiger +NOMINATIM_WIKIPEDIA_DATA_PATH=$USERNAME/Nominatim/test/testdb +EOF ``` Inspect the file to check that all settings are correct for your local setup. +In particular, the wikipedia path should point to the test directory in your +Nominatim source directory. Now you can import the test database: