mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Merge pull request #636 from drbyte/635-automove-old-config
Automatically move config after upgrade to v2.1
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
define('VALET_SERVER_PATH', realpath(__DIR__ . '/../../server.php'));
|
define('VALET_SERVER_PATH', realpath(__DIR__ . '/../../server.php'));
|
||||||
define('VALET_STATIC_PREFIX', '41c270e4-5535-4daa-b23e-c269744c2f45');
|
define('VALET_STATIC_PREFIX', '41c270e4-5535-4daa-b23e-c269744c2f45');
|
||||||
|
|
||||||
|
define('VALET_LEGACY_HOME_PATH', $_SERVER['HOME'].'/.valet');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output the given text to the console.
|
* Output the given text to the console.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -17,6 +17,13 @@
|
|||||||
use function Valet\table;
|
use function Valet\table;
|
||||||
use function Valet\warning;
|
use function Valet\warning;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Relocate config dir to ~/.config/valet/ if found in old location.
|
||||||
|
*/
|
||||||
|
if (is_dir(VALET_LEGACY_HOME_PATH) && !is_dir(VALET_HOME_PATH)) {
|
||||||
|
Configuration::createConfigurationDirectory();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the application.
|
* Create the application.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user