This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copy this file to the root of your Habitat repo | |
function Invoke-FunctionalTest | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[parameter(Position=0, Mandatory=$true)] | |
[string]$HostName, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uninstall Nancy version of Sitecore.Ship | |
$websitePath = "C:\inetpub\SIM\shipNancy\Website" | |
if (!(Test-Path $websitePath)) | |
{ | |
Write-Host "Cannot find the path $($websitePath)" | |
return | |
} | |
# Delete ship.config file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<requestHandler name="/replication" class="solr.ReplicationHandler" > | |
<lst name="master"> | |
<str name="enable">${enable.master:false}</str> | |
<str name="replicateAfter">optimize</str> | |
<str name="replicateAfter">commit</str> | |
<str name="backupAfter">optimize</str> | |
<str name="backupAfter">commit</str> | |
<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str> | |
<str name="commitReserveDuration">00:00:10</str> | |
</lst> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#@ template language="C#" #> | |
<#@ output encoding="utf-8"#> | |
<#@ include file="Helpers.tt" #> | |
<#@ include file="StringExtensions.tt" #> | |
<#@ include file="GeneralExtensions.tt" #> | |
<#@ include file="Inflector.tt" #> | |
<#@ assembly name="System.Core.dll" #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($installPath, $toolsPath, $package, $project) | |
$asms = $package.AssemblyReferences | %{$_.Name} | |
foreach ($reference in $project.Object.References) | |
{ | |
if ($asms -contains $reference.Name + ".dll") | |
{ | |
$reference.CopyLocal = $false; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<!-- | |
This assembly redirection is necessary to support | |
Glass and Solr simultaneously. GlassV3 wants to use | |
Castle 3.2+ and Solr wants 3.1. The snippet belows | |
assumes you want to use Castle 3.3 but it would also | |
work with 3.2. | |
--> | |
<dependentAssembly> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ConfigFileFilter([string]$providerName) | |
{ | |
return "^.*\." + $providerName + "\.(.+\.)?config.*$" | |
} | |
function Set-SCSearchProvider | |
{ | |
$rootPath = Read-Host "What is the path of your Sitecore instance's website folder?"; | |
$choice = Read-Host "(L)ucene or (S)olr?"; |