Manually setup PostgreSQL instance

nix-shell -p postgresql
export PGDATA=~/db/content
pg_ctl start
createdb mydb

The PGDATA environment variables describes the home directory for a PostgreSQL instance. It will contain the configuration along with the databases.

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.