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

Added .env file existence check #1014

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

Kravets1996
Copy link
Contributor

@Kravets1996 Kravets1996 commented Dec 28, 2022

An error occurs while running a command php artisan dusk while file .env.dusk exists, but .env does not:

In DuskCommand.php line 227:
file_get_contents(/code/.env): Failed to open stream: No such file or directory

In our case, this situation occurred while running tests in CI/CD, where .env is gitignored, but .env.dusk with default values exists.

@taylorotwell taylorotwell merged commit 9629ff1 into laravel:7.x Dec 30, 2022
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