It installs the required version of PHP for this project, creates a web server (Caddy) and configures MariaDB with a default database.
I've also added commands to run composer install to download dependencies when entering the shell and phpunit for tests.
With this approach, there's no need for containers as everything is run locally and I can view the site at http://localhost:8080 (or whatever port is defined).
All of my current development projects are using this approach and I think it'll be my default method for future projects.
- Oliver
Was this interesting?
About me
I'm an Acquia-certified Drupal Triple Expert with 17
years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.