@adrianthedev did you get a solution. I'm facing the same issue now!
Oct 29, 2015
1
Level 7
Environment variables inheritance with microservices
Hello,
Recently I ran into a problem while deploying a Lumen microservice. On the same machine I have a Laravel app and a Lumen app both with different .env file and the default environment variables (APP_ENV, DB_HOST, DB_DATABASE, etc).
My Laravel app needs to make a request the the Lumen app to get some data. That's when the problem occures. When the Lumen app receives the request it also inherits the Laravel's environment variables, making it impossible to do it's job (connect to the database or other services that have the environment variables set in the .env file).
Has anyone encountered this problem? Can you help?
Thanks,
Adrian Marin
Please or to participate in this conversation.