File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 # Write-Host "Run the following command in the terminal to run the scripts: "
3737 # Write-Host "$env:createindex" -ForegroundColor Cyan
3838 Write-Host "`nIf you want to use the Sample Data, run the following command in the Bash terminal to process it:"
39- Write-Host "./infra/scripts/process_sample_data.sh $env:STORAGE_ACCOUNT_NAME $env:STORAGE_CONTAINER_NAME $env:KEY_VAULT_NAME" -ForegroundColor Cyan
39+ Write-Host "bash ./infra/scripts/process_sample_data.sh $env:STORAGE_ACCOUNT_NAME $env:STORAGE_CONTAINER_NAME $env:KEY_VAULT_NAME" -ForegroundColor Cyan
4040 shell : pwsh
4141 continueOnError : false
4242 interactive : true
5050 # echo $createindex
5151 echo ""
5252 echo "If you want to use the Sample Data, run the following command in the terminal to process it:"
53- echo "./infra/scripts/process_sample_data.sh $env: STORAGE_ACCOUNT_NAME $env: STORAGE_CONTAINER_NAME $env: KEY_VAULT_NAME" -ForegroundColor Cyan
53+ echo "bash ./infra/scripts/process_sample_data.sh $STORAGE_ACCOUNT_NAME $STORAGE_CONTAINER_NAME $KEY_VAULT_NAME"
5454 shell : sh
5555 continueOnError : false
5656 interactive : true
Original file line number Diff line number Diff line change 4747
4848
4949# create virtual environment
50- echo " Creating virtual environment"
5150# Check if the virtual environment already exists
5251if [ -d " infra/scripts/scriptenv" ]; then
5352 echo " Virtual environment already exists. Skipping creation."
5453else
5554 echo " Creating virtual environment"
5655 python3 -m venv infra/scripts/scriptenv
5756fi
58- source infra/scripts/scriptenv/Scripts /activate
57+ source infra/scripts/scriptenv/bin /activate
5958
6059# Install the requirements
6160echo " Installing requirements"
6261pip install -r infra/scripts/index_scripts/requirements.txt
6362echo " Requirements installed"
6463
6564# Run the scripts
66- echo " Running the pyhton scripts"
65+ echo " Running the python scripts"
6766echo " Creating the search index"
6867python infra/scripts/index_scripts/01_create_search_index.py
6968if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments