Cheers will check it outā¦ I was mainly using this as a bit of a workaround for when youāre stuck in cPanel. Itās not always a choice! Provided youāre happy with a git history that looks a bit like this:
(āmasterā branch here is my development copy, and I was using āgulp --productionā to compile stuff for my staging branch so I could do some google pagespeed insights testing)
Itās not that big a deal. I wasnāt too happy with the idea of deploying so smoothly with git and then having to resort to old fashioned FTP for the compiled /dist assets.
Hooks is clearly the right way to do this, but, having separate (non-dev) branches where /dist is just included in the repo seemed like a nice happy medium.
FTP makes me feel dirty, I went through a phase of trying to eradicate FTP from my workflow but itās just one of those things you end up having to keep around and fall back on every now and then I find. Clients in the real world at my level seem to be pretty stubbornly attached to cPanel/Plesk etc. and these things donāt play nice with Trellis.
Thank you for the great response guys. I can tell this is a great community to be a part of. Iām going to just try syncing my dbs through the wp migrate pro plugin and will let you all know how it goes.