Update remaining stale references from `data` to `db`.

pull/11/head
Joshua Potter 2023-12-01 10:58:21 -07:00
parent 22210e7722
commit 72a5d2e607
5 changed files with 8 additions and 8 deletions

View File

@ -81,12 +81,12 @@ sed -i "s/<APP_NAME>/$APP/g" "$BUILD/flake.nix"
sed -i "s/username: \"postgres\"/username: \"$(whoami)\"/g" "$BUILD/config/dev.exs"
# Create a new database cluster.
nix develop "$BUILD" --command bash -c "pg_ctl initdb -D $BUILD/data"
nix develop "$BUILD" --command bash -c "pg_ctl initdb -D $BUILD/db"
# Append an additional rule to `.gitignore` to ignore the database cluster.
cat <<EOF >> "$BUILD"/.gitignore
# The default location of the generated database cluster.
/data/
/db/
# Directory used by \`direnv\` to hold \`use flake\`-generated profiles.
/.direnv/

View File

@ -10,8 +10,8 @@ $ nix develop
## Quickstart
An empty Postgres cluster is initialized at `/db`. To start the database, run
the following:
An empty Postgres cluster is initialized at `db`. To start the database, run the
following:
```bash
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@phoenix start
```

View File

@ -43,7 +43,7 @@ trap cleanup EXIT
cp -r template/* "$BUILD"
# Create a new database cluster.
nix develop "$BUILD" --command bash -c "pg_ctl initdb -D $BUILD/data"
nix develop "$BUILD" --command bash -c "pg_ctl initdb -D $BUILD/db"
# Explicitly set permissions on all copied files.
find "$BUILD" -type f -execdir chmod 644 {} +

View File

@ -1,2 +1,2 @@
# The default location of the generated database cluster.
/data/
/db/

View File

@ -10,8 +10,8 @@ $ nix develop
## Quickstart
An empty Postgres cluster is initialized at `/db`. To start the database, run
the following:
An empty Postgres cluster is initialized at `db`. To start the database, run the
following:
```bash
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@postgres start
```