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/
35
35
# Misc
36
36
.DS_Store
37
37
Thumbs.db
38
+
39
+ # Dgraph
40
+
41
+ data /**
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - " node"
4
- - " 8"
3
+ - " node"
4
+ - " 8"
5
5
sudo : required
6
6
dist : trusty
7
7
before_install :
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
13
+
12
14
npm run build
13
15
npm test
14
16
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
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...
13
14
14
15
if pgrep -x dgraph > /dev/null
15
16
then
@@ -24,7 +25,7 @@ function quit {
24
25
function start {
25
26
echo -e " Starting Dgraph alpha."
26
27
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 &
28
29
# Wait for membership sync to happen.
29
30
sleep $sleepTime
30
31
return 0
You can’t perform that action at this time.
0 commit comments