Skip to content

Commit 73948f4

Browse files
committed
Small changes
Change server.log to alpha.log Add a to do Let --zero flag to be default
1 parent 1ac2544 commit 73948f4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ init
99
startZero
1010
start
1111

12-
sleep 10 #Dgraph need some time to create Groot user
12+
sleep 10 # Dgraph need some time to create Groot user
1313

1414
npm run build
1515
npm test

scripts/functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77

88
function quit {
99
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.
1111

1212
kill -9 $(pgrep -f "dgraph zero") > /dev/null # Kill Dgraph zero.
1313
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 {
2525
function start {
2626
echo -e "Starting Dgraph alpha."
2727
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 &
2929
# Wait for membership sync to happen.
3030
sleep $sleepTime
3131
return 0

scripts/hmac-secret

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)