Skip to content

Commit

Permalink
Merge pull request learningequality#1795 from micahscopes/vue-refactor
Browse files Browse the repository at this point in the history
Makefile command to destroy/recreate the db
  • Loading branch information
indirectlylit authored Mar 10, 2020
2 parents aedd2ce + 653d988 commit cec5ec3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ setup:

export COMPOSE_PROJECT_NAME=studio_$(shell git rev-parse --abbrev-ref HEAD)

purge-postgres:
-PGPASSWORD=kolibri dropdb -U learningequality "kolibri-studio" --port 5432 -h localhost
PGPASSWORD=kolibri createdb -U learningequality "kolibri-studio" --port 5432 -h localhost

destroy-and-recreate-database: purge-postgres setup

dcbuild:
# build all studio docker image and all dependent services using docker-compose
Expand Down

0 comments on commit cec5ec3

Please sign in to comment.