Created
February 13, 2018 14:42
-
-
Save predavlad/b174064d810c8b5a7283da7a65d1eb20 to your computer and use it in GitHub Desktop.
A simple healthcheck
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 | |
require_once "app/Mage.php"; | |
Mage::app(); | |
$category = Mage::getModel('catalog/category')->load(3); | |
$name = $category->getName(); | |
if (strlen($name)) { | |
header("HTTP/1.1 200 OK"); | |
exit(0); | |
} | |
header("HTTP/1.1 500 Error"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment