Skip to content

Commit 455ca23

Browse files
authored
Merge pull request #5 from hunterjam/psl-contentgen
chore: Improve post-deploy script logging in azure.yaml
2 parents 7ed921f + 7b3b7d7 commit 455ca23

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

content-gen/azure.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ hooks:
7272
7373
# Run post-deploy script to upload sample data and create search index
7474
Write-Host ""
75+
# Note: Cosmos DB role is assigned to deployer via Bicep.
7576
Write-Host "===== Running Post-Deploy Script =====" -ForegroundColor Yellow
7677
Write-Host "This will upload sample data and create the search index..."
7778
@@ -81,7 +82,7 @@ hooks:
8182
elseif (Test-Path "../.venv/Scripts/python.exe") { $python = "../.venv/Scripts/python.exe" }
8283
elseif (Test-Path "./.venv/bin/python") { $python = "./.venv/bin/python" }
8384
elseif (Test-Path "../.venv/bin/python") { $python = "../.venv/bin/python" }
84-
& $python -m pip install -r ./scripts/requirements-post-deploy.txt --quiet 2>$null | Out-Null
85+
& $python -m pip install -r ./scripts/requirements-post-deploy.txt --quiet | Out-Null
8586
8687
if (Test-Path "./scripts/post_deploy.py") {
8788
& $python ./scripts/post_deploy.py --skip-tests
@@ -119,6 +120,7 @@ hooks:
119120
120121
# Run post-deploy script to upload sample data and create search index
121122
echo ""
123+
# Note: Cosmos DB role is assigned to deployer via Bicep.
122124
echo "===== Running Post-Deploy Script ====="
123125
echo "This will upload sample data and create the search index..."
124126
@@ -132,7 +134,7 @@ hooks:
132134
PYTHON_BIN="python3"
133135
fi
134136
135-
"$PYTHON_BIN" -m pip install -r ./scripts/requirements-post-deploy.txt --quiet > /dev/null 2>&1 \
137+
"$PYTHON_BIN" -m pip install -r ./scripts/requirements-post-deploy.txt --quiet > /dev/null \
136138
&& "$PYTHON_BIN" ./scripts/post_deploy.py --skip-tests \
137139
&& echo "Post-deploy script completed successfully!" \
138140
|| echo "Post-deploy script completed with warnings (some steps may have failed)"

0 commit comments

Comments
 (0)