roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Run composer check-platform-reqs during deploy #1411

Closed swalkinshaw closed 2 years ago

swalkinshaw commented 2 years ago

Fixes #1244

Runs composer check-platform-reqs before installing composer dependencies to verify that platform requirements (i.e. php and php extensions) are fulfilled by the PHP process currently running. This could potentially prevent some "white page of death" errors before a deploy.

Ref https://getcomposer.org/doc/07-runtime.md#platform-check

tangrufus commented 2 years ago

Can we add a when conditional to allow skipping? Default to perform platform check but allow skipping it by a boolean variable.

swalkinshaw commented 2 years ago

Good idea 👍 added