Skip to content

Commit

Permalink
fix: fix powershell issues (#129)
Browse files Browse the repository at this point in the history
* fix(infra): fix missing export

* fix(scripts): issue in powershell script (fixes #120)

* fix(scripts): wrong extension
  • Loading branch information
sinedied authored Nov 10, 2023
1 parent 16c5521 commit b06d197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
predeploy:
windows:
shell: pwsh
run: npm run build
run: Export-ModuleMember -Variable SEARCH_API_URI && npm run build
interactive: true
continueOnError: false
posix:
Expand Down
5 changes: 3 additions & 2 deletions scripts/index-data.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$scriptPath = $MyInvocation.MyCommand.Path
cd $scriptPath/..
cd $scriptPath/../..

Write-Host "Loading azd .env file from current environment"
$output = azd env get-values
Expand All @@ -19,4 +19,5 @@ npm ci
npm run build --workspace=indexer

Write-Host 'Running "index-files" CLI tool'
npx index-files --wait --indexer-url "$env:INDEXER_API_URI" --index-name "$env:AZURE_SEARCH_INDEX" ./data/*.md
$files = Get-Item "data/*.md"
npx index-files --wait --indexer-url "$env:INDEXER_API_URI" --index-name "$env:AZURE_SEARCH_INDEX" $files

0 comments on commit b06d197

Please sign in to comment.