From e61a5942e9178ae0ad855f550c8308c3207b8c66 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 18 Oct 2019 17:50:06 +0100 Subject: Split the Direnv section in the README Move the bit about the paramstring to after the database setup, as you need to have set the password. --- README | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/README b/README index 76b50ae..8c5f156 100644 --- a/README +++ b/README @@ -43,18 +43,6 @@ prompting to trust the =.envrc= file contained within the repository. Check the contents of the =.envrc= file, and if you trust it, run =direnv allow=. -To setup the configuration for your local environment, create a file called -.local.envrc. To provide the password you've set for the =guix_data_service= -user, you'll need to set the =GUIX_DATA_SERVICE_DATABASE_PARAMSTRING= -environment variable in this file. Add the following line, replacing -THEPASSWORD with the password you set earlier. - -#+BEGIN_SRC shell -export GUIX_DATA_SERVICE_DATABASE_PARAMSTRING="dbname=guix_data_service user=guix_data_service password=THEPASSWORD host=127.0.0.1" -#+END_SRC - -After, run =direnv reload= to update the environment in your shell. - ** Setup the database Dumps of the database behind data.guix.gnu.org are available at @@ -86,6 +74,20 @@ you set earlier. pg_restore --jobs=4 --user=guix_data_service --host=127.0.0.1 --dbname=guix_data_service guix_data_service_small.dump #+END_SRC +** Set the database paramstring + +To setup the configuration for your local environment, create a file called +.local.envrc. To provide the password you've set for the =guix_data_service= +user, you'll need to set the =GUIX_DATA_SERVICE_DATABASE_PARAMSTRING= +environment variable in this file. Add the following line, replacing +THEPASSWORD with the password you set earlier. + +#+BEGIN_SRC shell +export GUIX_DATA_SERVICE_DATABASE_PARAMSTRING="dbname=guix_data_service user=guix_data_service password=THEPASSWORD host=127.0.0.1" +#+END_SRC + +After, run =direnv reload= to update the environment in your shell. + ** Building the source files The following three commands will compile the =.go= files and generate the -- cgit v1.2.3