Skip to content

Commit

Permalink
init db debugging II
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed Jun 11, 2024
1 parent 2133e08 commit ef74111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployment/init-db.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export $(cat .env.prod) | xargs)
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
~/go/bin/migrate -path ../backend/migrations/ -database postgres://${SAC_DB_USERNAME}:${SAC_DB_PASSWORD}@${SAC_DB_HOST}:${SAC_DB_PORT}/${SAC_DB_NAME}?sslmode=disable -verbose up
~/go/bin/migrate -path ../backend/migrations/ -database postgres://${SAC_DB_USERNAME}:x@${SAC_DB_HOST}:${SAC_DB_PORT}/${SAC_DB_NAME}?sslmode=disable -verbose up

0 comments on commit ef74111

Please sign in to comment.