Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Passthrough PATH variable to serve command #45402

Merged
merged 2 commits into from
Dec 23, 2022
Merged

[9.x] Passthrough PATH variable to serve command #45402

merged 2 commits into from
Dec 23, 2022

Conversation

buismaarten
Copy link
Contributor

@buismaarten buismaarten commented Dec 22, 2022

I'm setting up the spatie/dns package inside a Laravel Sail container. It uses the ExecutableFinder class of the Symfony Process component that uses the PATH environment variable to search the dig executable.

This change fixes the issue by passing the environment variable using the artisan serve command that Laravel Sail uses. See: https://github.com/laravel/sail/blob/122af16408841cc750095a4ca3193751eed3f673/runtimes/8.1/supervisord.conf#L8

Edit:
All environment variables are passed through when artisan serve --no-reload is used, but this would not be a ideal solution.

@taylorotwell taylorotwell merged commit 02e27f8 into laravel:9.x Dec 23, 2022
@buismaarten buismaarten deleted the patch-1 branch December 23, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants