-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0e94cd
commit f317b7c
Showing
15 changed files
with
31 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -x | ||
TUGRAPH_PATH=${HOME}/project/tugraph-db/build/output | ||
TUGRAPH_WEB=${TUGRAPH_PATH}/resource | ||
function start { | ||
"${TUGRAPH_PATH}"/lgraph_server -c ./lgraph_standalone.json --web "${TUGRAPH_WEB}" -d start | ||
} | ||
function stop { | ||
"${TUGRAPH_PATH}"/lgraph_server -c ./lgraph_standalone.json -d stop | ||
} | ||
function load { | ||
"${TUGRAPH_PATH}"/lgraph_import -c ./rawdata/import.json -d lgraph_db --overwrite true --graph default --verbose 2 | ||
} | ||
function remove { | ||
rm -rf lgraph_db .import_tmp | ||
} | ||
function restart { | ||
stop | ||
start | ||
} | ||
function reload { | ||
remove | ||
load | ||
} | ||
function reboot { | ||
stop | ||
reload && sleep 2 && start | ||
} | ||
# load or reload | ||
$1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.