Change env storage

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

No files matched your search

+15
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