mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 00:48:57 +02:00
Make file locations work better from global install.
This commit is contained in:
@@ -62,7 +62,7 @@ class AddCommand extends AbstractCommand
|
||||
throw new Exception('You must specify a name for the environment.');
|
||||
}
|
||||
|
||||
$environmentConfigFile = '.mage/config/environment/' . $environmentName . '.yml';
|
||||
$environmentConfigFile = getcwd() . '/.mage/config/environment/' . $environmentName . '.yml';
|
||||
|
||||
if (file_exists($environmentConfigFile)) {
|
||||
throw new Exception('The environment already exists.');
|
||||
@@ -99,4 +99,4 @@ class AddCommand extends AbstractCommand
|
||||
Console::output('<light_red>Error!!</light_red> Unable to create config file for environment called <dark_gray>' . $environmentName . '</dark_gray>', 1, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user