Skip to content

Set up a standalone datastore locally

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

(Related: Set up a standalone tracingstore locally)

  • disable the local datastore by adding three lines to conf/application.conf:
play.modules.disabled += "com.scalableminds.webknossos.datastore.DataStoreModule"
datastore.enabled = false
play.http.router = "noDS.Routes"
  • on the local postgresql database, run with SQL:

    • delete from webknossos.datastores where name = 'localhost';
    • 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 wK at localhost:9000 and click refresh in the database list. This will take a while (datastore needs to launch). You should then see datasets.
Clone this wiki locally