From 12f31a864b1e9325b11e1f5bc02dc20f3d16b155 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Tue, 28 Nov 2023 10:58:33 -0700 Subject: [PATCH] Fixup README and add .gitignore rules. --- .gitignore | 6 ++++++ README.md | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f178685..bc3dc1d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,9 @@ npm-debug.log # The default location of the generated database cluster. /data/ + +# Directory used by `direnv` to hold `use flake`-generated profiles. +/.direnv/ + +# A symlink produced by default when running `nix build`. +/result diff --git a/README.md b/README.md index 02e2a22..a71b5b7 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ $> nix develop An empty Postgres cluster is initialized at `/data`. To start the database, run the following: ```bash -$> pg_ctl start -o --unix_socket_directories="$PGDATA" +$> pg_ctl start -o --unix_socket_directories="$PWD/data" ``` To shut the database down, run: ```bash @@ -21,7 +21,7 @@ $> pg_ctl stop ``` You can connect to this database from the project root directory by running: ```bash -$> psql -h "$PWD"/data -d postgres +$> psql -h "$PWD/data" -d postgres ``` Afterward, you can run the Phoenix setup commands: