Fixup README and add .gitignore rules.

pull/1/head
Joshua Potter 2023-11-28 10:58:33 -07:00
parent e7cc1d6d57
commit 12f31a864b
2 changed files with 8 additions and 2 deletions

6
.gitignore vendored
View File

@ -37,3 +37,9 @@ npm-debug.log
# The default location of the generated database cluster. # The default location of the generated database cluster.
/data/ /data/
# Directory used by `direnv` to hold `use flake`-generated profiles.
/.direnv/
# A symlink produced by default when running `nix build`.
/result

View File

@ -13,7 +13,7 @@ $> nix develop
An empty Postgres cluster is initialized at `/data`. To start the database, run An empty Postgres cluster is initialized at `/data`. To start the database, run
the following: the following:
```bash ```bash
$> pg_ctl start -o --unix_socket_directories="$PGDATA" $> pg_ctl start -o --unix_socket_directories="$PWD/data"
``` ```
To shut the database down, run: To shut the database down, run:
```bash ```bash
@ -21,7 +21,7 @@ $> pg_ctl stop
``` ```
You can connect to this database from the project root directory by running: You can connect to this database from the project root directory by running:
```bash ```bash
$> psql -h "$PWD"/data -d postgres $> psql -h "$PWD/data" -d postgres
``` ```
Afterward, you can run the Phoenix setup commands: Afterward, you can run the Phoenix setup commands: