add graphiql.html for example

Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/fbfcb020
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/fbfcb020
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/fbfcb020

Branch: refs/heads/master
Commit: fbfcb0208d8ecd083de2213e4371f04f79b165a4
Parents: a3ecb57
Author: Chul Kang <[email protected]>
Authored: Mon Apr 23 21:12:45 2018 +0900
Committer: Chul Kang <[email protected]>
Committed: Mon Apr 23 21:12:45 2018 +0900

----------------------------------------------------------------------
 example/prepare.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/fbfcb020/example/prepare.sh
----------------------------------------------------------------------
diff --git a/example/prepare.sh b/example/prepare.sh
index 9cfd804..01d8a20 100644
--- a/example/prepare.sh
+++ b/example/prepare.sh
@@ -22,9 +22,6 @@ status=`curl -s -o /dev/null -w "%{http_code}" "$REST"`
 if [ $status != '200' ]; then
     warn "s2graphql not running.. "
 
-    wget 
https://raw.githubusercontent.com/daewon/sangria-akka-http-example/master/src/main/resources/assets/graphiql.html
-    mv graphiql.html $ROOTDIR/s2graphql/src/main/resources/assets
-
     cd $ROOTDIR
     output="$(ls target/apache-s2graph-*-incubating-bin)"   
     if [ -z "$output" ]; then
@@ -34,6 +31,9 @@ if [ $status != '200' ]; then
 
     info "now we will launch s2graphql using build scripts"
     cd target/apache-s2graph-*-incubating-bin
+    wget 
https://raw.githubusercontent.com/daewon/sangria-akka-http-example/master/src/main/resources/assets/graphiql.html
+    mkdir -p conf/assets
+    mv graphiql.html conf/assets
     sh ./bin/start-s2graph.sh s2graphql
 else
     info "s2graphql is running!!"

Reply via email to