This commit is contained in:
Ben Visness 2022-05-16 10:26:56 -05:00
parent 491ae57590
commit 6dd11aa970
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
set -euxo pipefail
# This script is for use in local development only. It wipes the existing db,
# creates a new empty one, runs the initial migration to create the schema,
# and then imports actual db content on top of that.
# TODO(opensource): We should adapt Asaf's seedfile command and then delete this.
# BETA_PATH='/Users/benvisness/Developer/handmade/handmade-beta'
pushd $BETA_PATH
docker-compose down -v
docker-compose up -d postgres s3
sleep 3
docker-compose exec postgres bash -c "psql -U postgres -c \"CREATE ROLE hmn CREATEDB LOGIN PASSWORD 'password';\""
go run src/main.go db seedfile local/backups/hmn_pg_dump_live_2021-11-14
# go run src/main.go db seedfile local/backups/hmn_pg_dump_live_2021-10-23