Skip to content

Set up a standalone datastore locally

Florian M edited this page Sep 25, 2023 · 11 revisions

(Related: Set up a standalone tracingstore locally)

  • disable the local datastore by adding three lines to the end of conf/application.conf:
play.modules.disabled += "com.scalableminds.webknossos.datastore.DataStoreModule"
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, publicUrl, key, isDeleted) values('standalone-9090', 'http://localhost:9090', 'http://localhost:9090', 'something-secur3', 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 yarn start
  • 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.