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 | |
include './app/Mage.php'; | |
try { | |
Mage::app(); | |
// echo gethostname(); | |
echo $_SERVER["SERVER_ADDR"]; // local IP, for instances behind ELB | |
} Catch (Exception $e) { | |
header("HTTP/1.0 503 Service Unavailable"); | |
} |
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 'abstract.php'; | |
class Mage_Shell_CheckImages extends Mage_Shell_Abstract | |
{ | |
const CATALOG_PRODUCT = '/catalog/product'; | |
const CACHE = '/cache/'; | |
const PLACEHOLDER = '/placeholder/'; |