diff --git a/specs/phoenix/runner b/specs/phoenix/runner index ad0b4eb..924bf9c 100755 --- a/specs/phoenix/runner +++ b/specs/phoenix/runner @@ -81,12 +81,12 @@ sed -i "s//$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 <> "$BUILD"/.gitignore # The default location of the generated database cluster. -/data/ +/db/ # Directory used by \`direnv\` to hold \`use flake\`-generated profiles. /.direnv/ diff --git a/specs/phoenix/template/README.md b/specs/phoenix/template/README.md index 82e3943..7a02354 100644 --- a/specs/phoenix/template/README.md +++ b/specs/phoenix/template/README.md @@ -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 ``` diff --git a/specs/postgres/runner b/specs/postgres/runner index 069e294..70145fc 100755 --- a/specs/postgres/runner +++ b/specs/postgres/runner @@ -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 {} + diff --git a/specs/postgres/template/.gitignore b/specs/postgres/template/.gitignore index 54fe298..c7d8a7a 100644 --- a/specs/postgres/template/.gitignore +++ b/specs/postgres/template/.gitignore @@ -1,2 +1,2 @@ # The default location of the generated database cluster. -/data/ +/db/ diff --git a/specs/postgres/template/README.md b/specs/postgres/template/README.md index b2d29da..d7e634f 100644 --- a/specs/postgres/template/README.md +++ b/specs/postgres/template/README.md @@ -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 ```