diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 1787d156..7ece82f7 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -105,13 +105,19 @@ password `` is arbitrary and probably should not be your Ubuntu logi sudo -u postgres psql -c "SELECT 1 FROM pg_user WHERE usename = '';" | grep -q 1 || sudo -u postgres psql -c "CREATE ROLE SUPERUSER LOGIN PASSWORD '';" ``` +Set the `` as an environment variable. + +``` +export PGPASSWORD= +``` + Create a colouring london database if none exists. The name (``) is arbitrary. ``` sudo -u postgres psql -c "SELECT 1 FROM pg_database WHERE datname = '';" | grep -q 1 || sudo -u postgres createdb -E UTF8 -T template0 --locale=en_US.utf8 -O ``` -Run `psql` interactively (you will be prompted to enter the ``). +Run `psql` interactively. ``` psql -d -U -h localhost @@ -132,8 +138,6 @@ do this are located in the `migrations` folder of your local repository. `ls ./colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d -U -h localhost < $migration; done;` -(you will be prompted to enter the ``) - ## Setting up Node Now upgrade the npm package manager to the most recent release with global privileges. This