Skip to content

Set up a standalone datastore locally

Florian M edited this page Jun 28, 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 = false within the datastore { … } block
  • in conf/routes, disable the local datastore rerouting:
    • comment out -> /data/ com.scalableminds.webknossos.datastore.Routes with a #
  • run yarn refresh-schema
  • on the local postgresql database, run with SQL: insert into webknossos.datastores(name, url, key, typ, isdeleted) values('standalone-9090', 'http://localhost:9000', 'something-secur3', 'webknossos-store', 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: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