Update remaining stale references from `data` to `db`.
parent
22210e7722
commit
72a5d2e607
|
@ -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"
|
sed -i "s/username: \"postgres\"/username: \"$(whoami)\"/g" "$BUILD/config/dev.exs"
|
||||||
|
|
||||||
# Create a new database cluster.
|
# 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.
|
# Append an additional rule to `.gitignore` to ignore the database cluster.
|
||||||
cat <<EOF >> "$BUILD"/.gitignore
|
cat <<EOF >> "$BUILD"/.gitignore
|
||||||
# The default location of the generated database cluster.
|
# The default location of the generated database cluster.
|
||||||
/data/
|
/db/
|
||||||
|
|
||||||
# Directory used by \`direnv\` to hold \`use flake\`-generated profiles.
|
# Directory used by \`direnv\` to hold \`use flake\`-generated profiles.
|
||||||
/.direnv/
|
/.direnv/
|
||||||
|
|
|
@ -10,8 +10,8 @@ $ nix develop
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
An empty Postgres cluster is initialized at `/db`. To start the database, run
|
An empty Postgres cluster is initialized at `db`. To start the database, run the
|
||||||
the following:
|
following:
|
||||||
```bash
|
```bash
|
||||||
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@phoenix start
|
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@phoenix start
|
||||||
```
|
```
|
||||||
|
|
|
@ -43,7 +43,7 @@ trap cleanup EXIT
|
||||||
cp -r template/* "$BUILD"
|
cp -r template/* "$BUILD"
|
||||||
|
|
||||||
# Create a new database cluster.
|
# 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.
|
# Explicitly set permissions on all copied files.
|
||||||
find "$BUILD" -type f -execdir chmod 644 {} +
|
find "$BUILD" -type f -execdir chmod 644 {} +
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# The default location of the generated database cluster.
|
# The default location of the generated database cluster.
|
||||||
/data/
|
/db/
|
||||||
|
|
|
@ -10,8 +10,8 @@ $ nix develop
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
An empty Postgres cluster is initialized at `/db`. To start the database, run
|
An empty Postgres cluster is initialized at `db`. To start the database, run the
|
||||||
the following:
|
following:
|
||||||
```bash
|
```bash
|
||||||
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@postgres start
|
$ pg_ctl -D db -l db/logfile -o --unix_socket_directories=@postgres start
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue