Change env storage

This commit is contained in:
René Preuß
2021-07-23 17:40:31 +02:00
parent d25046f545
commit 917af5c140
9 changed files with 48 additions and 24 deletions

View File

@@ -15,6 +15,21 @@ $app = new LaravelZero\Framework\Application(
dirname(__DIR__)
);
/*
|--------------------------------------------------------------------------
| Set the correct path for the environment file
|--------------------------------------------------------------------------
|
| If the current directory has a .env file then we will use that instead
| of the global one, otherwise the one under the user homepage.
|
*/
if (!file_exists(dirname(__DIR__) . DIRECTORY_SEPARATOR . '.env')) {
$app->useEnvironmentPath(getenv('HOME') . DIRECTORY_SEPARATOR . '.bunny-cli');
}
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces