laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.47k stars 418 forks source link

.env not loaded properly #1229

Closed vatsake closed 2 years ago

vatsake commented 2 years ago

Description:

Sometimes the ENV is not properly loaded in production. I get "server error", log says: [2022-03-24 08:15:53] production.ERROR: Database hosts array is empty. (SQL: .... {"exception":"[object] (Illuminate\Database\QueryException(code: 0): Database hosts array is empty. (SQL: ... at ........\api\vendor\illuminate\database\Connection.php:712)

Steps To Reproduce:

Move config from Vendor/laravel/lumen-framework/config -> ROOT/config In bootstrap/app conf: $app->configure('database') and now sometimes env('') doesn't load properly

driesvints commented 2 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.