Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Serve command loads server in wrong environment #27828
When using the artisan serve command the correct environment is not loaded.
Steps To Reproduce:
It seems the environment is correctly loaded for artisan commands, but not for the resulting server process. Contrast the above with:
Thanks. I have done this.
I do believe this to be a bug. Steps to reproduce based solely on
The page will show
If still unconvinced this is a bug I'll go to one of the support channels.
Correct. Problem is not in the env helper as far as I can see. If I drop a psyshell in
To unfamiliar with the inner workings of laravel to help much I'm afraid.
This is caused by the different ways Laravel 5.7 and 5.8 set environment variables.
All the tests still work. Can you approve this @GrahamCampbell?
I tried upgrading Lumen, and it broke my app for me. The problem was that it wasn't seeing a required env variable set with
I gather that Dotenv switched from using
I think that not using