From 26672908f1d6ce82917f496b5c23c17112cc3bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Sat, 24 Jul 2021 13:00:33 +0200 Subject: [PATCH] Fix env path for windows --- app/helpers.php | 14 ++++++++++++++ bootstrap/app.php | 2 +- composer.json | 5 ++++- config/filesystems.php | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/helpers.php diff --git a/app/helpers.php b/app/helpers.php new file mode 100644 index 0000000..249843c --- /dev/null +++ b/app/helpers.php @@ -0,0 +1,14 @@ +useEnvironmentPath(getenv('HOME') . DIRECTORY_SEPARATOR . '.bunny-cli'); + $app->useEnvironmentPath(bunny_cli_path()); } diff --git a/composer.json b/composer.json index b0cab9c..652d2b1 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,10 @@ "autoload": { "psr-4": { "App\\": "app/" - } + }, + "files": [ + "app/helpers.php" + ] }, "autoload-dev": { "psr-4": { diff --git a/config/filesystems.php b/config/filesystems.php index 1b531ac..c9c1621 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -5,7 +5,7 @@ return [ 'disks' => [ 'local' => [ 'driver' => 'local', - 'root' => getenv('HOME') . DIRECTORY_SEPARATOR . '.bunny-cli', + 'root' => bunny_cli_path(), ], ], ];