Skip to content

Commit

Permalink
Remove the explicit config items about GremlinServer
Browse files Browse the repository at this point in the history
Improve #289

Change-Id: I9942a3fd085b3baac03545464ff69d401940319c
  • Loading branch information
Linary committed Dec 21, 2018
1 parent 2480347 commit efb7d8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ PID_FILE=$BIN/pid
. $BIN/util.sh

GREMLIN_SERVER_URL=`read_property "$CONF/rest-server.properties" "gremlinserver.url"`
if [ -z "$GREMLIN_SERVER_URL" ]; then
GREMLIN_SERVER_URL="http://127.0.0.1:8182"
fi
REST_SERVER_URL=`read_property "$CONF/rest-server.properties" "restserver.url"`

check_port "$GREMLIN_SERVER_URL"
Expand Down
2 changes: 0 additions & 2 deletions hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
host: 127.0.0.1
port: 8182
scriptEvaluationTimeout: 30000
# If you want to start gremlin-server for gremlin-console(web-socket),
# please change `HttpChannelizer` to `WebSocketChannelizer` or comment this line.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# bind url
restserver.url=http://127.0.0.1:8080

# gremlin url to connect
gremlinserver.url=http://127.0.0.1:8182

# graphs list with pair NAME:CONF_PATH
graphs=[hugegraph:conf/hugegraph.properties]

Expand Down

0 comments on commit efb7d8b

Please sign in to comment.