Skip to content

Commit

Permalink
Merge pull request #553 from IABTechLab/ajy-UID2-Improve-run_portal-c…
Browse files Browse the repository at this point in the history
…ommand

Improve run_portal command
  • Loading branch information
alex-yau-ttd authored Oct 23, 2024
2 parents 2e0b6ff + 561ac64 commit e4972db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_portal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ Push-Location -Path "../uid2-admin" -ErrorAction Stop

# Run admin docker & application
try {
Write-Host "Stopping uid2-admin application..."
Get-Process -Name "java" | Stop-Process -Force

Write-Host "Running docker compose for uid2-admin..."
docker compose up -d
if ($LASTEXITCODE -ne 0) {
Write-Error "Docker compose failed in uid2-admin with exit code $LASTEXITCODE"
exit 1
}

Write-Host "Running admin application..."
Write-Host "Running uid2-admin application..."
Start-Process "mvn" -ArgumentList "clean compile exec:java", "-Dvertx-config-path=conf/local-config.json", "-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory", "-Dlogback.configurationFile=conf/logback.xml" -WindowStyle Hidden
} catch {
Write-Error ("An error occurred: " + $_.Exception.Message)
Expand Down

0 comments on commit e4972db

Please sign in to comment.