Skip to content

Commit

Permalink
further refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrappelepam committed Jul 16, 2019
1 parent 60173ff commit 06d9139
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Deploy-SolrAzureAppService.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ $siteRoot = "D:\home\site\wwwroot"
Write-Output "Downloading Solr $solrVersion to $siteRoot"

$downloadSource = "https://archive.apache.org/dist/lucene/solr/$solrVersion/$solrName.zip"
Invoke-WebRequest -Uri $downloadSource -OutFile "$siteRoot\solr.zip"
Invoke-WebRequest -Uri $downloadSource -UseBasicParsing -OutFile "..\solr.zip"
#Start-BitsTransfer -Source $downloadSource -Destination "$siteRoot\solr.zip"
Expand-Archive "$siteRoot\solr.zip" -DestinationPath $siteRoot
Expand-Archive "..\solr.zip" -DestinationPath "..\"

Write-Output 'Copy web.config to site root'
xcopy web.config ..\wwwroot /Y
18 changes: 18 additions & 0 deletions web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler"
path="*"
verb="*"
modules="httpPlatformHandler"
resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%HOME%\site\wwwroot\bin\solr.cmd"
arguments="start -p %HTTP_PLATFORM_PORT%"
startupTimeLimit="20"
startupRetryCount="10"
stdoutLogEnabled="true">
</httpPlatform>
</system.webServer>
</configuration>

0 comments on commit 06d9139

Please sign in to comment.