diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
| commit | 1d441876933b96b33439088d7cd0ca27678ab7c8 (patch) | |
| tree | 440fe2b8c5528a28774773a6f73e44bc8448f7f7 /setup_db.sh | |
| parent | 12be51078f24cca0f7ceccb0885d1e60a0ae2148 (diff) | |
dockerize
Diffstat (limited to 'setup_db.sh')
| -rwxr-xr-x | setup_db.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setup_db.sh b/setup_db.sh new file mode 100755 index 0000000..8d819e5 --- /dev/null +++ b/setup_db.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +export PGPASSWORD=clickheretodie + +psql -h db -U thulani -w -c "CREATE EXTENSION IF NOT EXISTS pgcrypto" memes +diesel migration run --database-url "postgres://thulani:clickheretodie@db/memes" |
