Permalink
Browse files

Refactored index replication setup script

  • Loading branch information...
1 parent 40f9fdf commit 1ca9bc010c112773baa5937c14f4af85c2e54f49 @ayende ayende committed Sep 11, 2011
@@ -0,0 +1 @@
+Server/
@@ -1,2 +0,0 @@
-Plugins/
-Data/*
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <appSettings>
- <add key="Raven/Port" value="8080"/>
- <add key="Raven/DataDir" value="~\Data"/>
- <add key="Raven/AnonymousAccess" value="All"/>
- </appSettings>
- <connectionStrings>
- <add name="Reports"
- connectionString="Data Source=.\sqlexpress;Initial Catalog=Test;Integrated Security=True"
- providerName="System.Data.SqlClient"/>
- </connectionStrings>
- <runtime>
- <loadFromRemoteSources enabled="true"/>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <probing privatePath="Analyzers"/>
- </assemblyBinding>
- </runtime>
-</configuration>
@@ -1,27 +1,10 @@
-# starts the server in debug mode
+# starts the server in debug mode in the shard1 and shard2 directories,
+# meaning that they will use the specified configuration
-$raven = "..\..\Server" #release path
-$replication = "..\..\Bundles\Raven.Bundles.IndexReplication.dll"
-if( (test-path $raven) -eq $false)
-{
- $raven = "..\..\build" #src path
- $replication = "..\..\build\Raven.Bundles.IndexReplication.dll"
-}
-rd .\Server\Data -force -recurse -erroraction silentlycontinue
+. ..\Samples.ps1
-cp $raven\Raven.Server.exe .\Server
-cp $raven\log4net.dll .\Server
-cp $raven\Newtonsoft.Json.dll .\Server
-cp $raven\Lucene.Net.dll .\Server
-cp $raven\ICSharpCode.NRefactory.dll .\Server
-cp $raven\Rhino.Licensing.dll .\Server
-cp $raven\Esent.Interop.dll .\Server
-cp $raven\Raven.*.dll .\Server
-cp $raven\Spatial.net.dll .\Server
+Recreate-RavenDB Server @("Raven.Bundles.IndexReplication")
-mkdir .\Server\Plugins -erroraction silentlycontinue
-cp $replication .\Server\Plugins
-
-Start .\Server\Raven.Server.exe
+Start .\Server\Raven.Server.exe

0 comments on commit 1ca9bc0

Please sign in to comment.