From 31a3941d1159ea9dc58d35829bd0fa32c5736c0d Mon Sep 17 00:00:00 2001 From: EuphoryX1 Date: Tue, 10 Apr 2018 16:59:43 +0900 Subject: [PATCH] [#421] FIX .mage.yml config load path. --- bin/mage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mage b/bin/mage index 3175025..eb05f2b 100755 --- a/bin/mage +++ b/bin/mage @@ -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());