- 
                Notifications
    You must be signed in to change notification settings 
- Fork 29
Set up a standalone datastore locally
        Philipp Otto edited this page Sep 24, 2018 
        ·
        11 revisions
      
    - in conf/application.conf, disable the local datastore:- comment out play.modules.enabled += com.scalableminds.webknossos.datastore.DataStoreModule"with a//
- add enabled = falsewithin thedatastore { … }block
 
- comment out 
- in conf/routes, disable the local datastore rerouting:- comment out -> /data/ com.scalableminds.webknossos.datastore.Routeswith a#
 
- comment out 
diff --git a/conf/application.conf b/conf/application.conf
index 2bc1cb96c..e99c17e5c 100644
--- a/conf/application.conf
+++ b/conf/application.conf
@@ -6,10 +6,10 @@ application {
 play.modules.enabled += "WebKnossosModule"
 play.modules.enabled += "SilhouetteModule"
-play.modules.enabled += "com.scalableminds.webknossos.datastore.DataStoreModule"
+// play.modules.enabled += "com.scalableminds.webknossos.datastore.DataStoreModule"
 datastore {
-  enabled = true
+  enabled = false
   key = "something-secure"
   name = "localhost"
   debugMode = true
diff --git a/conf/routes b/conf/routes
index 63964eac1..b80edb5ea 100644
--- a/conf/routes
+++ b/conf/routes
@@ -1,2 +1,2 @@
 -> /          webknossos.Routes
--> /data/     com.scalableminds.webknossos.datastore.Routes
+# -> /data/     com.scalableminds.webknossos.datastore.Routes- run yarn refresh-schema
- on the local postgresql database, run with SQL: insert into webknossos.datastores(name, url, key, isForeign, isDeleted) values('standalone-9090', 'http://localhost:9090', 'something-secur3', false, false)
next, you need three shells in wK base dir:
- in the first, run ./fossildb/run.sh
- in the second, run sbt "webknossosDatastore/run 9090 -Dconfig.file=webknossos-datastore/conf/standalone-datastore.conf"
- in the third, run sbt run(without the./)
next, in a browser
- navigate to localhost:9000to make wK launch
- navigate to localhost:9090to make standalone-datastore launch (should display action not found page)
- back in the wK tab, click the refresh button in dataset list view, you should then see datasets.