File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
startZero
10
10
start
11
11
12
- sleep 10 # Dgraph need some time to create Groot user
12
+ sleep 10 # Dgraph need some time to create Groot user
13
13
14
14
npm run build
15
15
npm test
Original file line number Diff line number Diff line change 7
7
8
8
function quit {
9
9
echo " Shutting down Dgraph alpha and zero."
10
- curl -s localhost:8080/admin/shutdown
10
+ curl -s localhost:8080/admin/shutdown # TODO In the future this endpoint won't work anymore, in favor of GraphQL. We should prepare it.
11
11
12
12
kill -9 $( pgrep -f " dgraph zero" ) > /dev/null # Kill Dgraph zero.
13
13
kill -9 $( pgrep -f " dgraph alpha" ) > /dev/null # I don't wanna wait "clean shutdown" on this context. Let's kill it please...
@@ -25,7 +25,7 @@ function quit {
25
25
function start {
26
26
echo -e " Starting Dgraph alpha."
27
27
head -c 1024 /dev/random > data/acl-secret.txt
28
- dgraph alpha -p data/p -w data/w --lru_mb 4096 --zero localhost:5080 -- acl_secret_file data/acl-secret.txt > data/server .log 2>&1 &
28
+ dgraph alpha -p data/p -w data/w --lru_mb 4096 --acl_secret_file data/acl-secret.txt > data/alpha .log 2>&1 &
29
29
# Wait for membership sync to happen.
30
30
sleep $sleepTime
31
31
return 0
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments