Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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