andres-montanez / Magallanes

The PHP Deployment Tool
https://magephp.com
MIT License
694 stars 167 forks source link

.mage.yml config load path #421

Closed EuphoryX1 closed 3 years ago

EuphoryX1 commented 6 years ago

Related: #337 #338 @thePanz wrote a configuration file issue.

When deploying applications with mage.phar, this error message will be shown:

 In MageApplication.php line 69:

  The file ".mage.yml" does not exists or is not readable.

__DIR__ in the boot strap script(bin/mage) points to phar://... not to the local file. I think config file should be loaded from CURRENT WORKING DIRECTORY. This fix will be available in Magallanes installed via composer, too.