From 06d9139c390260e3bbaef44b3a625c0e1ce7190d Mon Sep 17 00:00:00 2001 From: John Rappel Date: Tue, 16 Jul 2019 11:46:36 -0500 Subject: [PATCH] further refinements --- Deploy-SolrAzureAppService.ps1 | 7 +++++-- web.config | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 web.config diff --git a/Deploy-SolrAzureAppService.ps1 b/Deploy-SolrAzureAppService.ps1 index fb51428..c5c1031 100644 --- a/Deploy-SolrAzureAppService.ps1 +++ b/Deploy-SolrAzureAppService.ps1 @@ -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 \ No newline at end of file diff --git a/web.config b/web.config new file mode 100644 index 0000000..a91fced --- /dev/null +++ b/web.config @@ -0,0 +1,18 @@ + + + + + + + + + +