Covid had me bored thinking of how I would improve my processes. This led to creating Project Bonsai. It’s basically a full Roots stack with everything configured how I like it.
The cool thing is that I made some shell scripts that will launch this exact site in one command (development.sh, staging.sh, and production.sh).
The scripts use WP-CLI to create of all the pages, posts, forms and WP settings.
Then the only thing left to do to have this exact website is to go into your WP Dashboard > Forms and setup GravityForm notifications (currently not doable from GF-CLI as far as I know).
I don’t think this project is necessarily useful to many people in the Roots community yet, but perhaps you’ll find my process interesting. It is a work in progress, so I would love any feedback, criticism, ideas, or questions.
- 00 - Quick Setup (Roots requirements) - 8:17
- 01 - Configure Bonsai - 4:47
- 02 - Create Local Environment - 1:53
- 03 - Deploy Staging Site - 1:47
- 04 - Deploy Production Site - 1:56
I’m pretty new to writing scripts and using WP-CLI, so if anyone wants to make any optimizations or improvements, feel free to make a pull request.
LEEF Design System: This is a SCSS folder you can drop into Sage that will build on top of Bootstrap to customize Bonsai’s look