Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a86cc99

Browse files
committed
Add docker:emptydb yarn command, to blow away the dev dbhub db
Useful for creating an empty dbhub database, ready to have an existing populated snapshot loaded into it for dev purposes
1 parent 787b468 commit a86cc99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"docker:attach": "docker attach dbhub-build",
3333
"docker:build": "docker build --tag dbhub-build docker",
3434
"docker:debug": "docker exec -it dbhub-build /bin/sh /usr/local/bin/debug.sh",
35+
"docker:emptydb": "docker exec -it dbhub-build pkill dbhub- && docker exec -itu postgres dbhub-build sh -c 'dropdb dbhub && createdb -O dbhub dbhub'",
3536
"docker:exec": "docker exec -it dbhub-build /bin/sh",
3637
"docker:github": "docker run -itd --rm --name dbhub-build -p 9443-9445:9443-9445/tcp --mount type=bind,src=\"$(pwd)\",target=/dbhub.io dbhub-build:latest",
3738
"docker:psql": "docker exec -it dbhub-build psql -U dbhub dbhub",

0 commit comments

Comments
 (0)