Skip to content

Commit ce70013

Browse files
committed
1 parent 57cbc8b commit ce70013

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

scripts/dgraph

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# see https://stackoverflow.com/questions/63260073/starting-zero-alpha-and-ratel-in-a-single-command-e-g-in-macosx-and-other-envir
88
# see https://discuss.dgraph.io/t/dgraph-start-script/9231
99

10-
version=v20.07.0
10+
version=v20.03.0
1111
# interative tty option for docker
1212
it="-it"
1313

@@ -62,12 +62,13 @@ error() {
6262
# show usage
6363
#
6464
usage() {
65-
echo "$0 [-b|--bash|-h|--help|-k|--kill|-p|--pull]"
65+
echo "$0 [-b|--bash|-c|--clean|-h|--help|-k|--kill|-p|--pull]"
6666
echo ""
6767
echo "-b | --bash: start a bash terminal shell within the currently running container"
6868
echo "-h | --help: show this usage"
6969
echo "-k | --kill: stop the docker image"
7070
echo "-p | --pull: pull the docker image"
71+
echo "-c | --clean: clean start with kill and purge of all data"
7172
exit 1
7273
}
7374

@@ -181,6 +182,16 @@ do
181182
alpha) alpha;;
182183
ratel) ratel;;
183184
zero) zero;;
185+
-c|--clean)
186+
stopImage
187+
if [ -d ~/dgraph ]
188+
then
189+
color_msg $blue "removing content from ~/dgraph"
190+
rm -rf ~/dgraph/*
191+
fi
192+
# call me with no parameters to start terminals
193+
$me
194+
;;
184195
-p|--pull) pullImage;;
185196
-b|--bash) bashInto;;
186197
-k|--kill) stopImage;;

tests/test_ConfRef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def testConfRef(self):
2222
''' test reading confRef data '''
2323
dgraph=Dgraph()
2424
dgraph.drop_all()
25-
confRef=ConfRef(mode='json')
25+
confRef=ConfRef(mode='dgraph')
2626
confRef.em.removeCacheFile()
2727
#EventManager.debug=True
2828
confRef.cacheEvents()

0 commit comments

Comments
 (0)