Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(scripts): issue in powershell script (fixes #120)
  • Loading branch information
sinedied committed Nov 8, 2023
commit 9670eef8b3488cb5feac9b682934635ccbbe81c4
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/*.pdf"
npx index-files --wait --indexer-url "$env:INDEXER_API_URI" --index-name "$env:AZURE_SEARCH_INDEX" $files