I’ve seen several posts talking about how to run RavenDb in Embedded mode and purge the database. If you want a newly created database each run or you are configuring for unit testing, simply use the
RunInMemory=true. Most posts show how to serve the embedded database over HTTP setting
UseEmbeddedHttpServer = true but neglect to explain changing the default port. Since I’m hosting RavenDb in IIS over default port 8080 trying to serve up an Embedded version using default port 8080 would cause conflicts. Therefore, I use
NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(9090) to change the port and use http://localhost:9090 to access RavenDb Studio for the embedded version. Another overlooked setting is the ability to bypass authentication for local access,
store.HttpServer.SystemConfiguration.AllowLocalAccessWithoutAuthorization = true will do the trick.
1 2 3 4 5 6 7 8 9 10 11