diff --git a/CHANGELOG.md b/CHANGELOG.md index 200baca..fad13c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Updated `ubuntu` test runners to `24.04` * Updated `lando/setup-lando` to `v3` +* Updated tests to `lando exec` ## v1.3.0 - [March 8, 2024](https://github.com/lando/php/releases/tag/v1.3.0) diff --git a/examples/5.3/README.md b/examples/5.3/README.md index 58a92e8..13a2ad6 100644 --- a/examples/5.3/README.md +++ b/examples/5.3/README.md @@ -1,5 +1,4 @@ -PHP 5.3 Example -=========== +# PHP 5.3 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,107 +19,109 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 5.3 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 5.3" +lando exec defaults -- php -v | grep "PHP 5.3" # Should use 9.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "9." +lando exec defaults -- psql -V | grep "9." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 5.3" +lando exec custom -- php -v | grep "PHP 5.3" # Should install composer 1.x if composer_version is set to true -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec custom -- composer --version --no-ansi | grep "Composer version 1." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." + +# Should print out docker logs +docker logs landophp53_custom_nginx_1 ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. ```bash -# Should print out docker logs -docker logs landophp53_custom_nginx_1 +# Should be destroyed with success +lando destroy -y +lando poweroff ``` diff --git a/examples/5.4/README.md b/examples/5.4/README.md index d654139..be7bb0c 100644 --- a/examples/5.4/README.md +++ b/examples/5.4/README.md @@ -1,5 +1,4 @@ -PHP 5.4 Example -=========== +# PHP 5.4 Example This example exists primarily to test the following documentation: @@ -9,8 +8,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -20,103 +18,101 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 5.4 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 5.4" +lando exec defaults -- php -v | grep "PHP 5.4" # Should use 9.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "9." +lando exec defaults -- psql -V | grep "9." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 5.4" +lando exec custom -- php -v | grep "PHP 5.4" # Should install composer 1.x if composer_version is set to true -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec custom -- composer --version --no-ansi | grep "Composer version 1." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/5.5/README.md b/examples/5.5/README.md index 2ae3d52..005c16d 100644 --- a/examples/5.5/README.md +++ b/examples/5.5/README.md @@ -1,5 +1,4 @@ -PHP 5.5 Example -=========== +# PHP 5.5 Example This example exists primarily to test the following documentation: @@ -9,8 +8,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -20,103 +18,101 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 5.5 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 5.5" +lando exec defaults -- php -v | grep "PHP 5.5" # Should use 9.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "9." +lando exec defaults -- psql -V | grep "9." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 5.5" +lando exec custom -- php -v | grep "PHP 5.5" # Should install composer 1.x if composer_version is set to true -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec custom -- composer --version --no-ansi | grep "Composer version 1." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/5.6/README.md b/examples/5.6/README.md index a6b96b7..eadebc4 100644 --- a/examples/5.6/README.md +++ b/examples/5.6/README.md @@ -1,5 +1,4 @@ -PHP 5.6 Example -=========== +# PHP 5.6 Example This example exists primarily to test the following documentation: @@ -9,8 +8,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -20,103 +18,101 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 5.6 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 5.6" +lando exec defaults -- php -v | grep "PHP 5.6" # Should use 9.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "9." +lando exec defaults -- psql -V | grep "9." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 5.6" +lando exec custom -- php -v | grep "PHP 5.6" # Should install composer 1.x if composer_version is set to true -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec custom -- composer --version --no-ansi | grep "Composer version 1." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/7.0/README.md b/examples/7.0/README.md index 8d2d58b..a59a906 100644 --- a/examples/7.0/README.md +++ b/examples/7.0/README.md @@ -1,5 +1,4 @@ -PHP 7.0 Example -=========== +# PHP 7.0 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.0 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 7.0" +lando exec defaults -- php -v | grep "PHP 7.0" # Should use 9.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "9." +lando exec defaults -- psql -V | grep "9." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 7.0" +lando exec custom -- php -v | grep "PHP 7.0" # Should install composer 2.x if 2-latest is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec custom -- composer --version --no-ansi | grep "Composer version 2." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/7.1/README.md b/examples/7.1/README.md index b534cba..dd58a17 100644 --- a/examples/7.1/README.md +++ b/examples/7.1/README.md @@ -1,5 +1,4 @@ -PHP 7.1 Example -=========== +# PHP 7.1 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.1 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 7.1" +lando exec defaults -- php -v | grep "PHP 7.1" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 7.1" +lando exec custom -- php -v | grep "PHP 7.1" # Should install composer 2.x if 2-latest is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec custom -- composer --version --no-ansi | grep "Composer version 2." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/7.2/README.md b/examples/7.2/README.md index 00faa99..86e3dfd 100644 --- a/examples/7.2/README.md +++ b/examples/7.2/README.md @@ -1,5 +1,4 @@ -PHP 7.2 Example -=========== +# PHP 7.2 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.2 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 7.2" +lando exec defaults -- php -v | grep "PHP 7.2" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 1.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 1." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 7.2" +lando exec custom -- php -v | grep "PHP 7.2" # Should install composer 2.x if 2-latest is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec custom -- composer --version --no-ansi | grep "Composer version 2." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the latest composer 1.x using the 1 flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cli -- composer --version --no-ansi | grep "Composer version 1." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 1.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 1." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/7.3/README.md b/examples/7.3/README.md index 4eb336e..6ea8911 100644 --- a/examples/7.3/README.md +++ b/examples/7.3/README.md @@ -1,5 +1,4 @@ -PHP 7.3 Example -=========== +# PHP 7.3 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,103 +19,101 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.3 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 7.3" +lando exec defaults -- php -v | grep "PHP 7.3" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 7.3" +lando exec custom -- php -v | grep "PHP 7.3" # Should install composer 2.x if 2-latest is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec custom -- composer --version --no-ansi | grep "Composer version 2." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the composer 2.x using the false flag -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/7.4/README.md b/examples/7.4/README.md index 401651b..d697d62 100644 --- a/examples/7.4/README.md +++ b/examples/7.4/README.md @@ -1,5 +1,4 @@ -PHP 7.4 Example -=========== +# PHP 7.4 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,103 +19,101 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.4 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 7.4" +lando exec defaults -- php -v | grep "PHP 7.4" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 7.4" +lando exec custom -- php -v | grep "PHP 7.4" # Should install composer 2.x if 2-latest is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec custom -- composer --version --no-ansi | grep "Composer version 2." # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 2.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/8.0/README.md b/examples/8.0/README.md index 92d9c65..2bfef79 100644 --- a/examples/8.0/README.md +++ b/examples/8.0/README.md @@ -1,5 +1,4 @@ -PHP 8.0 Example -=========== +# PHP 8.0 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.0 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 8.0" +lando exec defaults -- php -v | grep "PHP 8.0" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 8.0" +lando exec custom -- php -v | grep "PHP 8.0" # Should install composer 2.1.12 if version number is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2.1.12" +lando exec custom -- composer --version --no-ansi | grep "Composer version 2.1.12" # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the composer 2.x using the false flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cli -- composer --version --no-ansi | grep "Composer version 2." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 2.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/8.1/README.md b/examples/8.1/README.md index 996e09a..434b868 100644 --- a/examples/8.1/README.md +++ b/examples/8.1/README.md @@ -1,5 +1,4 @@ -PHP 8.1 Example -=========== +# PHP 8.1 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.1 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 8.1" +lando exec defaults -- php -v | grep "PHP 8.1" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 8.1" +lando exec custom -- php -v | grep "PHP 8.1" # Should install composer 2.1.12 if version number is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2.1.12" +lando exec custom -- composer --version --no-ansi | grep "Composer version 2.1.12" # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the composer 2.x using the false flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cli -- composer --version --no-ansi | grep "Composer version 2." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 2.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/8.2/README.md b/examples/8.2/README.md index 92cbbef..311b211 100644 --- a/examples/8.2/README.md +++ b/examples/8.2/README.md @@ -1,5 +1,4 @@ -PHP 8.2 Example -=========== +# PHP 8.2 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.2 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 8.2" +lando exec defaults -- php -v | grep "PHP 8.2" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 8.2" +lando exec custom -- php -v | grep "PHP 8.2" # Should install composer 2.2.18 if version number is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2.2.18" +lando exec custom -- composer --version --no-ansi | grep "Composer version 2.2.18" # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the composer 2.x using the false flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cli -- composer --version --no-ansi | grep "Composer version 2." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 2.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/8.3/README.md b/examples/8.3/README.md index 00e8a7f..6919fdf 100644 --- a/examples/8.3/README.md +++ b/examples/8.3/README.md @@ -1,5 +1,4 @@ -PHP 8.3 Example -=============== +# PHP 8.3 Example This example exists primarily to test the following documentation: @@ -10,8 +9,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -21,106 +19,104 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.3 as the default php version -lando ssh -s defaults -c "php -v" | grep "PHP 8.3" +lando exec defaults -- php -v | grep "PHP 8.3" # Should use 10.x as the default postgresql-client version -lando ssh -s defaults -c "psql -V" | grep "10." +lando exec defaults -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s defaults -c "apachectl -V" | grep "2.4." +lando exec defaults -- apachectl -V | grep "2.4." # Should only serve over http by default -lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1 +lando exec defaults -- curl https://localhost || echo $? | grep 1 # Should serve from the app root by default -lando ssh -s defaults -c "curl http://localhost" | grep "ROOTDIR" +lando exec defaults -- curl http://localhost | grep "ROOTDIR" # Should have a 1G php mem limit on appserver -lando ssh -s defaults -c "curl http://localhost" | grep "memory_limit" | grep "1G" +lando exec defaults -- curl http://localhost | grep "memory_limit" | grep "1G" # Should have COMPOSER_MEMORY_LIMIT set to -1 -lando ssh -s defaults -c "env" | grep "COMPOSER_MEMORY_LIMIT=-1" +lando exec defaults -- env | grep "COMPOSER_MEMORY_LIMIT=-1" # Should install composer 2.x by default -lando ssh -s defaults -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec defaults -- composer --version --no-ansi | grep "Composer version 2." # Should have unlimited memory for php for CLI opts lando php -i | grep memory_limit | grep -e "-1" -lando ssh -s defaults -c "php -i" | grep "memory_limit" | grep -e "-1" +lando exec defaults -- php -i | grep "memory_limit" | grep -e "-1" # Should not enable xdebug by default -lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec defaults -- php -m | grep xdebug || echo $? | grep 1 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should use specified php version if given -lando ssh -s custom -c "php -v" | grep "PHP 8.3" +lando exec custom -- php -v | grep "PHP 8.3" # Should install composer 2.5.6 if version number is set -lando ssh -s custom -c "composer --version --no-ansi" | grep "Composer version 2.5.6" +lando exec custom -- composer --version --no-ansi | grep "Composer version 2.5.6" # Should serve via nginx if specified -lando ssh -s custom_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom_nginx -- curl https://localhost | grep "WEBDIR" # Should enable xdebug if specified -lando ssh -s custom -c "php -m" | grep "xdebug" +lando exec custom -- php -m | grep "xdebug" # Should not serve port 80 for cli -lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1 +lando exec cli -- curl http://localhost || echo $? | grep 1 # Should install the composer 2.x using the false flag -lando ssh -s cli -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cli -- composer --version --no-ansi | grep "Composer version 2." # Should use custom php ini if specified -lando ssh -s custom -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On +lando exec custom -- php -i | grep memory_limit | grep 514 +lando exec custom -- curl http://custom_nginx | grep html_errors | grep On | grep On # Should inherit overrides from its generator -lando ssh -s custom -c "env | grep DUALBLADE | grep maxim" -lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim" +lando exec custom -- env | grep DUALBLADE | grep maxim +lando exec custom_nginx -- env | grep DUALBLADE | grep maxim # Should be able to run build steps on lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "cat /app/test/managed_build_step" +lando exec custom_nginx -- cat /app/test/managed_build_step # Should be able to override lando managed nginx service # https://github.com/lando/lando/issues/1990 -lando ssh -s custom_nginx -c "env | grep OTHER | grep stuff" -lando ssh -s custom_nginx -c "env | grep MORE | grep things" +lando exec custom_nginx -- env | grep OTHER | grep stuff +lando exec custom_nginx -- env | grep MORE | grep things # Should set PATH_INFO and PATH_TRANSLATED if appropriate # https://github.com/lando/lando/issues/2192 -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/web/a/b.php" -lando ssh -s custom_nginx -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_INFO | grep "/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep PATH_TRANSLATED | grep "/app/a/b.php" -lando ssh -s defaults -c "curl http://localhost/path_info.php/a/b.php" | grep SCRIPT_NAME | grep "/path_info.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/web/a/b.php" +lando exec custom_nginx -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_INFO | grep "/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep PATH_TRANSLATED | grep "/app/a/b.php" +lando exec defaults -- curl http://localhost/path_info.php/a/b.php | grep SCRIPT_NAME | grep "/path_info.php" # Should allow cli services to specify a boot up command lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity # Should install the latest composer 2.x by default. -lando ssh -s cliworker -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2." # Should have node14 installed in cli service lando node -v | grep v14. ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/composer/README.md b/examples/composer/README.md index 1d49d59..0d6a7d8 100644 --- a/examples/composer/README.md +++ b/examples/composer/README.md @@ -1,5 +1,4 @@ -PHP Composer Example -=========== +# PHP Composer Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,44 +17,42 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should install composer 1.x if composer_version set to 1 -lando ssh -s composer1 -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec composer1 -- composer --version --no-ansi | grep "Composer version 1." # Should install composer 1.x if composer_version set to 1-latest -lando ssh -s composer1latest -c "composer --version --no-ansi" | grep "Composer version 1." +lando exec composer1latest -- composer --version --no-ansi | grep "Composer version 1." # Should install composer 1.10.21 if composer_version set to specific version -lando ssh -s composer1ver -c "composer --version --no-ansi" | grep "Composer version 1.10.21" +lando exec composer1ver -- composer --version --no-ansi | grep "Composer version 1.10.21" # Should install composer 2.x if composer_version set to 2 -lando ssh -s composer2 -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec composer2 -- composer --version --no-ansi | grep "Composer version 2." # Should install composer 2.x if composer_version set to 2-latest -lando ssh -s composer2latest -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec composer2latest -- composer --version --no-ansi | grep "Composer version 2." # Should install composer 2.1.10 if composer_version set to specific version -lando ssh -s composer2ver -c "composer --version --no-ansi" | grep "Composer version 2.1.10" +lando exec composer2ver -- composer --version --no-ansi | grep "Composer version 2.1.10" # Should install compose global dependencies if specified by user and have them available in PATH -lando ssh -s dependencies -c "phpunit --version" -lando ssh -s dependencies -c "which phpunit" | grep "/var/www/.composer/vendor/bin/phpunit" +lando exec dependencies -- phpunit --version +lando exec dependencies -- which phpunit | grep "/var/www/.composer/vendor/bin/phpunit" # Should PATH prefer composer dependency binaries installed in /app/vendor over global ones -lando ssh -s dependencies -c "composer require phpunit/phpunit" -lando ssh -s dependencies -c "phpunit --version" -lando ssh -s dependencies -c "which phpunit" | grep "/app/vendor/bin/phpunit" -lando ssh -s dependencies -c "composer remove phpunit/phpunit" -lando ssh -s dependencies -c "which phpunit" | grep "/var/www/.composer/vendor/bin/phpunit" +lando exec dependencies -- composer require phpunit/phpunit +lando exec dependencies -- phpunit --version +lando exec dependencies -- which phpunit | grep "/app/vendor/bin/phpunit" +lando exec dependencies -- composer remove phpunit/phpunit +lando exec dependencies -- which phpunit | grep "/var/www/.composer/vendor/bin/phpunit" ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/custom/README.md b/examples/custom/README.md index 2665fbc..62b3d72 100644 --- a/examples/custom/README.md +++ b/examples/custom/README.md @@ -1,5 +1,4 @@ -PHP Custom Example -=========== +# PHP Custom Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,8 +17,7 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. @@ -29,37 +26,36 @@ Run the following commands to validate things are rolling as they should. lando node -v | grep v12. # Should use 7.4 as the php version -lando ssh -s withnode -c "php -v" | grep "PHP 7.4" +lando exec withnode -- php -v | grep "PHP 7.4" # Should use 8.1 as the php version -lando ssh -s custom81 -c "php -v" | grep "PHP 8.1" +lando exec custom81 -- php -v | grep "PHP 8.1" # Should install composer 2.1.14 if version number is set -lando ssh -s custom81 -c "composer --version --no-ansi" | grep "Composer version 2.1.14" +lando exec custom81 -- composer --version --no-ansi | grep "Composer version 2.1.14" # Should use nginx version 1.17.x as the webserver version -lando ssh -s custom81_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec custom81_nginx -- nginx -v 2>&1 | grep 1.17 # Should have a PATH_INFO and PATH_TRANSLATED SERVER vars -lando ssh -s custom81_nginx -c "curl https://localhost" | grep SERVER | grep PATH_INFO -lando ssh -s custom81_nginx -c "curl https://localhost" | grep SERVER | grep PATH_TRANSLATED +lando exec custom81_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO +lando exec custom81_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED # Should serve via nginx if specified -lando ssh -s custom81_nginx -c "curl http://localhost" | grep "WEBDIR" +lando exec custom81_nginx -- curl http://localhost | grep "WEBDIR" # Should serve via https if specified -lando ssh -s custom81_nginx -c "curl https://localhost" | grep "WEBDIR" +lando exec custom81_nginx -- curl https://localhost | grep "WEBDIR" # Should use custom php ini if specified -lando ssh -s custom81 -c "php -i | grep memory_limit | grep 514" -lando ssh -s custom81 -c "curl http://custom81_nginx" | grep html_errors | grep On | grep On +lando exec custom81 -- php -i | grep memory_limit | grep 514 +lando exec custom81 -- curl http://custom81_nginx | grep html_errors | grep On | grep On # Detect whether php-fpm is using custom www.conf lando exec custom81 -- ps axf | grep "php-fpm: pool www" | wc -l | grep 3 ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/7.3-apache-4/README.md b/examples/images-edge/7.3-apache-4/README.md index 43e8178..837fe9f 100644 --- a/examples/images-edge/7.3-apache-4/README.md +++ b/examples/images-edge/7.3-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 7.3 Apache Image Edge Example -=========== +# PHP 7.3 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.3" +lando exec default -- php -v | grep "PHP 7.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/7.3-fpm-4/README.md b/examples/images-edge/7.3-fpm-4/README.md index 29da335..63ea7bc 100644 --- a/examples/images-edge/7.3-fpm-4/README.md +++ b/examples/images-edge/7.3-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 7.3 Nginx Image Edge Example -=========== +# PHP 7.3 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.3" +lando exec default -- php -v | grep "PHP 7.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/7.4-apache-4/README.md b/examples/images-edge/7.4-apache-4/README.md index 198cb5f..70111fa 100644 --- a/examples/images-edge/7.4-apache-4/README.md +++ b/examples/images-edge/7.4-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 7.4 Apache Image Edge Example -=========== +# PHP 7.4 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.4 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.4" +lando exec default -- php -v | grep "PHP 7.4" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/7.4-fpm-4/README.md b/examples/images-edge/7.4-fpm-4/README.md index 73b7f6e..0b2e224 100644 --- a/examples/images-edge/7.4-fpm-4/README.md +++ b/examples/images-edge/7.4-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 7.4 Nginx Image Edge Example -=========== +# PHP 7.4 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.4 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.4" +lando exec default -- php -v | grep "PHP 7.4" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.0-apache-4/README.md b/examples/images-edge/8.0-apache-4/README.md index 90d1bd5..5485c3b 100644 --- a/examples/images-edge/8.0-apache-4/README.md +++ b/examples/images-edge/8.0-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.0 Apache Image Edge Example -=========== +# PHP 8.0 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.0 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.0" +lando exec default -- php -v | grep "PHP 8.0" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.0-fpm-4/README.md b/examples/images-edge/8.0-fpm-4/README.md index 66a352a..3bb156f 100644 --- a/examples/images-edge/8.0-fpm-4/README.md +++ b/examples/images-edge/8.0-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.0 Nginx Image Edge Example -=========== +# PHP 8.0 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.0 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.0" +lando exec default -- php -v | grep "PHP 8.0" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.1-apache-4/README.md b/examples/images-edge/8.1-apache-4/README.md index 24cd336..2c33ca0 100644 --- a/examples/images-edge/8.1-apache-4/README.md +++ b/examples/images-edge/8.1-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.1 Apache Image Edge Example -=========== +# PHP 8.1 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.1 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.1" +lando exec default -- php -v | grep "PHP 8.1" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.1-fpm-4/README.md b/examples/images-edge/8.1-fpm-4/README.md index 0a81ac4..6cae4af 100644 --- a/examples/images-edge/8.1-fpm-4/README.md +++ b/examples/images-edge/8.1-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.1 Nginx Image Edge Example -=========== +# PHP 8.1 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.1 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.1" +lando exec default -- php -v | grep "PHP 8.1" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.2-apache-4/README.md b/examples/images-edge/8.2-apache-4/README.md index 59166a8..7609bcc 100644 --- a/examples/images-edge/8.2-apache-4/README.md +++ b/examples/images-edge/8.2-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.2 Apache Image Edge Example -=========== +# PHP 8.2 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.2 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.2" +lando exec default -- php -v | grep "PHP 8.2" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.2-fpm-4/README.md b/examples/images-edge/8.2-fpm-4/README.md index c17bf09..03dbbc2 100644 --- a/examples/images-edge/8.2-fpm-4/README.md +++ b/examples/images-edge/8.2-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.2 Nginx Image Edge Example -=========== +# PHP 8.2 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.2 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.2" +lando exec default -- php -v | grep "PHP 8.2" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.3-apache-4/README.md b/examples/images-edge/8.3-apache-4/README.md index 6c253b1..4019487 100644 --- a/examples/images-edge/8.3-apache-4/README.md +++ b/examples/images-edge/8.3-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.3 Apache Image Edge Example -================================= +# PHP 8.3 Apache Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.3" +lando exec default -- php -v | grep "PHP 8.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-edge/8.3-fpm-4/README.md b/examples/images-edge/8.3-fpm-4/README.md index aaed10e..4587a09 100644 --- a/examples/images-edge/8.3-fpm-4/README.md +++ b/examples/images-edge/8.3-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.3 Nginx Image Edge Example -================================ +# PHP 8.3 Nginx Image Edge Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.3" +lando exec default -- php -v | grep "PHP 8.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/7.3-apache-4/README.md b/examples/images-stable/7.3-apache-4/README.md index ae6dfb5..2fda7df 100644 --- a/examples/images-stable/7.3-apache-4/README.md +++ b/examples/images-stable/7.3-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 7.3 Apache Image Stable Example -=========== +# PHP 7.3 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.3" +lando exec default -- php -v | grep "PHP 7.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/7.3-fpm-4/README.md b/examples/images-stable/7.3-fpm-4/README.md index 092f80d..553f394 100644 --- a/examples/images-stable/7.3-fpm-4/README.md +++ b/examples/images-stable/7.3-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 7.3 Nginx Image Stable Example -=========== +# PHP 7.3 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.3" +lando exec default -- php -v | grep "PHP 7.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/7.4-apache-4/README.md b/examples/images-stable/7.4-apache-4/README.md index 335b7f6..9c5f807 100644 --- a/examples/images-stable/7.4-apache-4/README.md +++ b/examples/images-stable/7.4-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 7.4 Apache Image Stable Example -=========== +# PHP 7.4 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.4 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.4" +lando exec default -- php -v | grep "PHP 7.4" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/7.4-fpm-4/README.md b/examples/images-stable/7.4-fpm-4/README.md index 90dae9c..85735f9 100644 --- a/examples/images-stable/7.4-fpm-4/README.md +++ b/examples/images-stable/7.4-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 7.4 Nginx Image Stable Example -=========== +# PHP 7.4 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 7.4 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 7.4" +lando exec default -- php -v | grep "PHP 7.4" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.0-apache-4/README.md b/examples/images-stable/8.0-apache-4/README.md index 677c1fd..b9c4ec6 100644 --- a/examples/images-stable/8.0-apache-4/README.md +++ b/examples/images-stable/8.0-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.0 Apache Image Stable Example -=========== +# PHP 8.0 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.0 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.0" +lando exec default -- php -v | grep "PHP 8.0" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.0-fpm-4/README.md b/examples/images-stable/8.0-fpm-4/README.md index 14d9384..686edee 100644 --- a/examples/images-stable/8.0-fpm-4/README.md +++ b/examples/images-stable/8.0-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.0 Nginx Image Stable Example -=========== +# PHP 8.0 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.0 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.0" +lando exec default -- php -v | grep "PHP 8.0" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.1-apache-4/README.md b/examples/images-stable/8.1-apache-4/README.md index f5e24cc..26d8f51 100644 --- a/examples/images-stable/8.1-apache-4/README.md +++ b/examples/images-stable/8.1-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.1 Apache Image Stable Example -=========== +# PHP 8.1 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.1 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.1" +lando exec default -- php -v | grep "PHP 8.1" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.1-fpm-4/README.md b/examples/images-stable/8.1-fpm-4/README.md index f5b042d..35bb6a5 100644 --- a/examples/images-stable/8.1-fpm-4/README.md +++ b/examples/images-stable/8.1-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.1 Nginx Image Stable Example -=========== +# PHP 8.1 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.1 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.1" +lando exec default -- php -v | grep "PHP 8.1" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.2-apache-4/README.md b/examples/images-stable/8.2-apache-4/README.md index d341068..0e7ad95 100644 --- a/examples/images-stable/8.2-apache-4/README.md +++ b/examples/images-stable/8.2-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.2 Apache Image Stable Example -=========== +# PHP 8.2 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.2 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.2" +lando exec default -- php -v | grep "PHP 8.2" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.2-fpm-4/README.md b/examples/images-stable/8.2-fpm-4/README.md index d3d44b0..64477de 100644 --- a/examples/images-stable/8.2-fpm-4/README.md +++ b/examples/images-stable/8.2-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.2 Nginx Image Stable Example -=========== +# PHP 8.2 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.2 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.2" +lando exec default -- php -v | grep "PHP 8.2" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.3-apache-4/README.md b/examples/images-stable/8.3-apache-4/README.md index 595a96c..e75b06d 100644 --- a/examples/images-stable/8.3-apache-4/README.md +++ b/examples/images-stable/8.3-apache-4/README.md @@ -1,5 +1,4 @@ -PHP 8.3 Apache Image Stable Example -=================================== +# PHP 8.3 Apache Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.3" +lando exec default -- php -v | grep "PHP 8.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use apache 2.4 as the default webserver version -lando ssh -s default -c "apachectl -V" | grep "2.4." +lando exec default -- apachectl -V | grep "2.4." # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/images-stable/8.3-fpm-4/README.md b/examples/images-stable/8.3-fpm-4/README.md index fb606b4..f2464c0 100644 --- a/examples/images-stable/8.3-fpm-4/README.md +++ b/examples/images-stable/8.3-fpm-4/README.md @@ -1,5 +1,4 @@ -PHP 8.3 Nginx Image Stable Example -================================== +# PHP 8.3 Nginx Image Stable Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,27 +17,25 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should use 8.3 as the default php version -lando ssh -s default -c "php -v" | grep "PHP 8.3" +lando exec default -- php -v | grep "PHP 8.3" # Should use 10.x as the default postgresql-client version -lando ssh -s default -c "psql -V" | grep "10." +lando exec default -- psql -V | grep "10." # Should use nginx 1. as the default webserver version -lando ssh -s default_nginx -c "nginx -v 2>&1 | grep 1.17" +lando exec default_nginx -- nginx -v 2>&1 | grep 1.17 # Should install composer 2.x by default -lando ssh -s default -c "composer --version --no-ansi" | grep "Composer version 2." +lando exec default -- composer --version --no-ansi | grep "Composer version 2." ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/php-extensions/README.md b/examples/php-extensions/README.md index 1d0fa6c..e6312c2 100644 --- a/examples/php-extensions/README.md +++ b/examples/php-extensions/README.md @@ -1,5 +1,4 @@ -PHP Extensions Example -====================== +# PHP Extensions Example This example exists primarily to test the following: @@ -9,8 +8,7 @@ This example exists primarily to test the following: * [Issue #2201](https://github.com/lando/lando/pull/2201) * [Issue #2240](https://github.com/lando/lando/pull/2240) -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -20,22 +18,20 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should have installed the needed php extensions -lando ssh -s buildsteps -c "php -m" | grep stats -lando ssh -s buildsteps -c "php -m" | grep xsl -lando ssh -s dockerfile -c "php -m" | grep oci8 -lando ssh -s dockerfile -c "php -m" | grep pdo_sqlsrv -lando ssh -s dockerfile -c "php -m" | grep sqlsrv +lando exec buildsteps -- php -m | grep stats +lando exec buildsteps -- php -m | grep xsl +lando exec dockerfile -- php -m | grep oci8 +lando exec dockerfile -- php -m | grep pdo_sqlsrv +lando exec dockerfile -- php -m | grep sqlsrv ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened. diff --git a/examples/xdebug/README.md b/examples/xdebug/README.md index f62b5f0..69b0562 100644 --- a/examples/xdebug/README.md +++ b/examples/xdebug/README.md @@ -1,5 +1,4 @@ -PHP Xdebug Example -=========== +# PHP Xdebug Example This example exists primarily to test the following documentation: @@ -8,8 +7,7 @@ This example exists primarily to test the following documentation: And probably other stuff -Start up tests --------------- +## Start up tests Run the following commands to get up and running with this example. @@ -19,30 +17,28 @@ lando poweroff lando start ``` -Verification commands ---------------------- +## Verification commands Run the following commands to validate things are rolling as they should. ```bash # Should enable xdebug 2 for php 5.6 -lando ssh -s xdebug2 -c "php --re xdebug | head -1" | grep "xdebug version 2." +lando exec xdebug2 -- php --re xdebug | head -1 | grep "xdebug version 2." # Should enable xdebug 3 for php 7.2+ -lando ssh -s xdebug3on -c "php --re xdebug | head -1" | grep "xdebug version 3." +lando exec xdebug3on -- php --re xdebug | head -1 | grep "xdebug version 3." # Should not enable xdebug by when set to false -lando ssh -s xdebug3off -c "php -m | grep xdebug" || echo $? | grep 1 +lando exec xdebug3off -- php -m | grep xdebug || echo $? | grep 1 # Should use develop, debug if defined -lando ssh -s xdebug3 -c "env" | grep 'XDEBUG_MODE' | grep 'debug,develop' +lando exec xdebug3 -- env | grep 'XDEBUG_MODE' | grep 'debug,develop' # Should use xdebug version 3.0.4 if installed -lando ssh -s manual -c "php --re xdebug | head -1" | grep "xdebug version 3.0.4" +lando exec manual -- php --re xdebug | head -1 | grep "xdebug version 3.0.4" ``` -Destroy tests -------------- +## Destroy tests Run the following commands to trash this app like nothing ever happened.