I have been learning and working with Trellis/Bedrock/Sage for a year now and I love it. One of my major struggle however is to setup an efficient workflow for a multitude of clients with very diverse environments. Most of my clients are individuals with limited ressources so they all mostly chose a shared hosting solution like Godaddy or Bluehost. Although I’d advise them to other platforms like Digital Ocean, sometimes I just have to work with what is already set up.
I fully understand that a Treillis/Bedrock based install cannot provision a shared host. Also, When I tried to sync my local Trellis/Bedrock install using WP Migrate DB Pro, There were a lot of problems since the Bedrock structure was not matching the server’s one. So I was never able to make it work properly.
My solution to this was to drop Trellis and Bedrock entirely and work only with Sage. That way I could at least work with WP Migrate DB Pro and sync my environments. I am also using Local by Flywheel for Local installs, it works well.
Of course I am not really happy with this configuration. I would still want to use Trellis/Bedrock/Sage together if I could make it work. The other major problem is that I cannot use Browsersync on yarn start: for some reason I can’t understand, it just fail to work on a classic WP install powered by Local Flywheel.
Am I missing something? Is there an efficient way to work locally with Trellis/bedrock and still somehow deploy/sync database to-and-from shared hosts? What about Browsersync for non-bedrock installs on Local?
Is there a better way to solve all this?