This repository was archived by the owner on Sep 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,7 @@ coverage/
3535# Misc
3636.DS_Store
3737Thumbs.db
38+
39+ # Dgraph
40+
41+ data /**
Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3- - " node"
4- - " 8"
3+ - " node"
4+ - " 8"
55sudo : required
66dist : trusty
77before_install :
Original file line number Diff line number Diff line change 99startZero
1010start
1111
12+ sleep 10 # Dgraph need some time to create Groot user
13+
1214npm run build
1315npm test
1416
Original file line number Diff line number Diff line change 77
88function quit {
99 echo " Shutting down Dgraph alpha and zero."
10- curl -s localhost:8080/admin/shutdown
11- # Kill Dgraph zero.
12- kill -9 $( pgrep -f " dgraph zero" ) > /dev/null
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+
12+ kill -9 $( pgrep -f " dgraph zero" ) > /dev/null # Kill Dgraph zero.
13+ kill -9 $( pgrep -f " dgraph alpha" ) > /dev/null # I don't wanna wait "clean shutdown" on this context. Let's kill it please...
1314
1415 if pgrep -x dgraph > /dev/null
1516 then
@@ -24,7 +25,7 @@ function quit {
2425function start {
2526 echo -e " Starting Dgraph alpha."
2627 head -c 1024 /dev/random > data/acl-secret.txt
27- 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 &
2829 # Wait for membership sync to happen.
2930 sleep $sleepTime
3031 return 0
You can’t perform that action at this time.
0 commit comments