From 80adb466e23506c872e9b0ea50878d8564e6ed7b Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 1 Mar 2022 10:17:00 +0000 Subject: [PATCH] remove -d --- docs/setup-dev-environment.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 00dabb86..9c30fcc1 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -205,9 +205,9 @@ sudo -u postgres psql -c "SELECT 1 FROM pg_database WHERE datname = ' -c "create extension postgis;" -psql -d -c "create extension pgcrypto;" -psql -d -c "create extension pg_trgm;" +psql -c "create extension postgis;" +psql -c "create extension pgcrypto;" +psql -c "create extension pg_trgm;" ``` ### :arrow_forward: Configuring Node.js @@ -248,7 +248,7 @@ You should then download the file to the machine where you are setting up your d In your Ubuntu installation where you have been running these setup steps (e.g. Virtualbox VM), you can then recrate the db like so. ```bash -psql -d < +psql < ``` #### Run migrations @@ -257,7 +257,7 @@ Now run all 'up' migrations to create tables, data types, indexes etc. The `.sql do this are located in the `migrations` folder of your local repository. ```bash -ls ~/colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d < $migration; done; +ls ~/colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql < $migration; done; ``` @@ -330,7 +330,7 @@ Now run all 'up' migrations to create tables, data types, indexes etc. The `.sql do this are located in the `migrations` folder of your local repository. ```bash -ls ~/colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d < $migration; done; +ls ~/colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql < $migration; done; ``` #### Load buildings