Add a dev_psql script

parent 57bf0ecf
Pipeline #62871324 passed with stages
in 14 minutes and 21 seconds
......@@ -145,11 +145,17 @@ changes to the code.
To stop the site, type `quit` in the terminal, then press Enter.
## Troubleshooting
### Troubleshooting
If `./build.sh` commands fail in any way, try running `./build.sh cleandb` and
then building again.
## Connecting to the local database
The script `./s/dev_psql` will spawn a psql shell that is connected to the dev
database. Refer to [Postgres' psql
documentation](https://www.postgresql.org/docs/9.6/app-psql.html).
## Using the local site
### View in your browser
......
#!/usr/bin/env bash
set -Eeuo pipefail
#
# s/dev_psql: Connects to the dev database with psql.
#
export PGHOST="${PWD}/.postgres-work"
export PGDATABASE=snowdrift_development
make -f db.makefile
psql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment