Skip to content

Instantly share code, notes, and snippets.

@jonathonsim
Created October 26, 2018 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathonsim/2af19c28d1d68e3ad2a30043b1657469 to your computer and use it in GitHub Desktop.
Save jonathonsim/2af19c28d1d68e3ad2a30043b1657469 to your computer and use it in GitHub Desktop.
<?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