[#421] FIX .mage.yml config load path.

This commit is contained in:
EuphoryX1 2018-04-10 16:59:43 +09:00
parent 5fa99c68f5
commit 31a3941d11

View file

@ -11,7 +11,8 @@ if (file_exists(__DIR__ . '/../../../autoload.php')) {
use Mage\MageApplication;
try {
$mage = new MageApplication('.mage.yml');
$file = sprintf("%s/.mage.yml", getcwd());
$mage = new MageApplication($file);
$mage->run();
} catch (Exception $exception) {
printf('Error: %s' . PHP_EOL, $exception->getMessage());