mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-02 06:02:52 +02:00
Merge pull request #422 from EuphoryX1/nostromo
[#421] FIX .mage.yml config load path.
This commit is contained in:
commit
35bd3805e4
3
bin/mage
3
bin/mage
|
@ -11,7 +11,8 @@ if (file_exists(__DIR__ . '/../../../autoload.php')) {
|
||||||
use Mage\MageApplication;
|
use Mage\MageApplication;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$mage = new MageApplication('.mage.yml');
|
$file = sprintf("%s/.mage.yml", getcwd());
|
||||||
|
$mage = new MageApplication($file);
|
||||||
$mage->run();
|
$mage->run();
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
printf('Error: %s' . PHP_EOL, $exception->getMessage());
|
printf('Error: %s' . PHP_EOL, $exception->getMessage());
|
||||||
|
|
Loading…
Reference in a new issue