I’m aware there’s Trellis but if I’m on a machine that doesn’t have the ability to use virtualization, I’d like to see if there’s an alternative.
Would the PHP version requirement in Bedrock’s
composer.json affect you here?
You could use WP-CLI which uses
php -S in the background. You’ll just need to pass the docroot like this:
I set WP_HOME to the full url (with port), ran
composer install, and used
wp server --docroot=web and it works. Still wondering if the same thing would work with sage but I’ll cross that bridge when I get to it.
Late to the party, but I would suggest Valet and WP CLI Valet to make your life easier if you want a lightweight nginx server set up in seconds. Works flawlessly.