magallanes/bin/mage

20 lines
483 B
Plaintext
Raw Permalink Normal View History

2016-12-31 07:52:25 +01:00
#!/usr/bin/env php
<?php
date_default_timezone_set('UTC');
2016-12-31 08:32:47 +01:00
if (file_exists(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
} elseif (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';
}
2016-12-31 07:52:25 +01:00
use Mage\MageApplication;
try {
2017-01-29 22:25:02 +01:00
$mage = new MageApplication('.mage.yml');
$mage->run();
} catch (Exception $exception) {
printf('Error: %s' . PHP_EOL, $exception->getMessage());
exit(9);
}