You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the new environment file encryption feature in Laravel. If I call php artisan env:encrypt --env=staging , it fails because it tries to connect to the staging instance's Redis but from my local computer I cannot access that. The staging instance has Telescope enabled (as it's on an company-wide network and it helps with debugging). But Laravel loads the whole environment from the .env.staging file, therefore overwriting my local Redis configuration. Telescope will try to use the staging's Redis connection to check for pause-recording and all of these stuff. As it cannot connect, the whole encryption command fails with a timeout error.
I have just submitted a PR which should resolve this. It would great if you could run a quick test with your setup @pyr0hu using the PR to ensure it works for you: laravel/framework#44758
Description:
I want to use the new environment file encryption feature in Laravel. If I call
php artisan env:encrypt --env=staging
, it fails because it tries to connect to the staging instance's Redis but from my local computer I cannot access that. The staging instance has Telescope enabled (as it's on an company-wide network and it helps with debugging). But Laravel loads the whole environment from the .env.staging file, therefore overwriting my local Redis configuration. Telescope will try to use the staging's Redis connection to check forpause-recording
and all of these stuff. As it cannot connect, the whole encryption command fails with a timeout error.Steps To Reproduce:
.env.staging:
TELESCOPE_ENABLED=true
REDIS_HOST=unaccessible redis host
php artisan env:encrypt --env=staging
The text was updated successfully, but these errors were encountered: