mirror of
https://github.com/bitinflow/bunny-cli.git
synced 2026-03-13 13:45:54 +00:00
Change env storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user