No option to pass through existing env vars as well as auto-reload on env change #43489
Unanswered
martenjacobs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
framework/src/Illuminate/Foundation/Console/ServeCommand.php
Lines 135 to 139 in e7ac9b1
I'm running Laravel sail in a devcontainer. I'd like to be able to pass through most environment variables to multiple containers so that I can set up MySQL with certain credentials, and use the same env vars in Laravel to connect to the database, for instance. However, I found that serving Laravel through
php artisan serve
will block most environment variables from the "outside" environment. This means I'd have to duplicate all my variables to the .env file for my Laravel app, or use "--no-reload", in which case the filter is ignored. Wouldn't it be possible to have both?Beta Was this translation helpful? Give feedback.
All reactions