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'm using WSL2 and not PHP installed in my WSL2. And I run my Laravel project with a custom PHP docker container. I'm not using Laravel Sail for that. Is there any way to make Laravel Pint run it on my PHP docker container?
The text was updated successfully, but these errors were encountered:
The paths get used to transform paths from the host to the Docker container. With the assumption of the Docker container having configured a working directory and having 1-to-1 mapping with the host files, this config can be avoided. But, to cover all cases, it's better to have that configuration.
So, the final command becomes something like this:
$ docker exec some-container vendor/bin/pest
# or, for specific files:
$ docker exec some-container vendor/bin/pest tests/Unit/ExampleTest.php
This solution also eliminates the need for having special Laravel Sail logic.
I'm using WSL2 and not PHP installed in my WSL2. And I run my Laravel project with a custom PHP docker container. I'm not using Laravel Sail for that. Is there any way to make Laravel Pint run it on my PHP docker container?
The text was updated successfully, but these errors were encountered: