Merge pull request #422 from EuphoryX1/nostromo

[#421] FIX .mage.yml config load path.
This commit is contained in:
Andrés Montañez 2021-02-18 22:06:26 -03:00 committed by GitHub
commit 35bd3805e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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());