Pergunta

I'm trying setup the Versioning bundle in RavenDB: http://ravendb.net/bundles/versioning

The installation instructions are pretty straight forward:

Simply place the Raven.Bundles.Versioning.dll in the Plugins directory.

I've tried this do this by creating a "Plugins" directory under the Server directory (the Server directory contains the Raven.Server.exe), and dropping Raven.Client.Versioning.dll into that Plugins directory.

However, when I run RavenDB after that (either from the command line or as a service), it doesn't give me any indication that it has recognized the plugin, and when I save/edit new documents no versioning is being applied.

I've tried running with the default plugin directory settings (which supposedly automatically looks in the Plugins directory), and I've tried manually adding the PluginsDirectory setting to Raven.Server.exe.config, to no avail.

Has anyone been able to get plugins working, specifically the versioning bundle? Do you hae to do anything special?

Foi útil?

Solução

Mike, It is supposed to just work. Take a look at the statistics, you should see the versioning trigger registered there.

It is important to ensure that:

  • You are using the same version of the dlls
  • You restarts RavenDB after copying the directory
  • You don't reference another Raven/PluginsDirectory in the configuration

It is probably better to follow this up in the mailing list.

Outras dicas

For Raven v2, you'll also add the bundle name to the the Raven/ActiveBundles property on a database document. The names should be semicolon-delimited.

For example, I have a database called MidwestAnimalRescue. To enable the Periodic Backup bundle and the Versioning bundle, my document will look like this:

enter image description here

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top