-
-
Save johnnyfreeman/4c88fc8ff28d93d1a6d63ee643215317 to your computer and use it in GitHub Desktop.
PHP Executable that defers to binary inside Laravel Sail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path=$(printf '%s\n' "${PWD##*/}") | |
command="docker exec ${path}-laravel.test-1 php "$@"" | |
echo "Running php on docker ${path}-laravel.test-1" | |
$command |
Author
johnnyfreeman
commented
Apr 30, 2023
- Create php file
- Make it executable
- Copy and paste the above script inside
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment