Created
October 26, 2018 23:18
-
-
Save jonathonsim/2af19c28d1d68e3ad2a30043b1657469 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Idealstack Healthcheck. | |
* | |
* This file is checked by the load balancer to see whether the site is healthy. | |
* If it returns a 500 error the site is considered unhealthy, and the site's container | |
* will be rebooted. | |
* | |
* This default check doesn't do much except check that PHP is running. | |
* You can customise this file to check other important resources | |
* and return a 500 response code if they fail. But be careful - every time | |
* the check fails the site goes offline | |
*/ | |
echo "OK"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment