Skip to content

Set up a standalone datastore locally

Florian M edited this page Oct 17, 2018 · 11 revisions

(Related: Set up a standalone tracingstore locally)

  • in conf/application.conf, disable the local datastore:
    • comment out play.modules.enabled += com.scalableminds.webknossos.datastore.DataStoreModule" with a //
    • add enabled = false within the datastore { … } block
  • in conf/routes, disable the local datastore rerouting:
    • comment out -> /data/ com.scalableminds.webknossos.datastore.Routes with a #
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 two shells in wK base dir:

  • in the first, run sbt "webknossosDatastore/run 9090 -Dconfig.file=webknossos-datastore/conf/standalone-datastore.conf"
  • in the second, run ./sbt run

next, in a browser

  • navigate to localhost:9000 to make wK launch
  • navigate to localhost:9090 to 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.
Clone this wiki locally