aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-10-18 17:50:06 +0100
committerChristopher Baines <mail@cbaines.net>2019-10-18 17:50:06 +0100
commite61a5942e9178ae0ad855f550c8308c3207b8c66 (patch)
tree0bbd55f0ef5a9ac2c5b7ffb5f46fea317c003ba8
parent263eb0e0a9ab8cd877b8b1723a884b3c306fd012 (diff)
downloaddata-service-e61a5942e9178ae0ad855f550c8308c3207b8c66.tar
data-service-e61a5942e9178ae0ad855f550c8308c3207b8c66.tar.gz
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.
-rw-r--r--README26
1 files 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