Skip to content

Instantly share code, notes, and snippets.

View henrywoody's full-sized avatar
💻
Devving

Henry Woody henrywoody

💻
Devving
View GitHub Profile
@henrywoody
henrywoody / setup-db.sql
Last active September 17, 2020 01:12
Postgres Database Setup
-- Requires the following environment variables:
-- - `DB_NAME`
-- - `DB_USER`
-- - `DB_PASS`
-- To run (in shell):
-- `psql postgres -h $DB_HOST -p $DB_PORT -f /path/to/setup-db.sql`
\set db_name `echo $DB_NAME`
\set db_user `echo $DB_USER`