Created
January 16, 2023 21:01
-
-
Save michaellwest/599b1e9bd7786dcd3a389277fae13232 to your computer and use it in GitHub Desktop.
Curl the home page when the CM reports unhealthy. For use with Sitecore and Docker.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$containers = docker ps -a --format "table {{.Names}}" | |
$container = $containers | ConvertFrom-Csv | Where-Object { $_.NAMES -match "-cm" } | Select-Object -First 1 -ExpandProperty NAMES | |
docker exec $container curl http://cm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment