I’m using Roots 7.0 on a host where I Git Deploy (WPEngine). The new grunt workflow creates scripts, css and the manifest.json files, but all of those are commented out in .gitignore. Since they never make it in to my repo, they never get deployed when I push to the production servers.
I assume the solution is to just remove the relevant lines in gitignore so that these can be versioned. I understand the desirability of not having to commit these generated assets, but for those of us using a Git deployment mechanism, I don’t see any other way to make this work.
I haven’t check out Roots 7.0 but I used Git for my WordPress deployment workflow with both Pagodabox and Bedrock on EC2. Feels like I’m missing something here with the new release, is there a change in workflow?
Normally I would just run grunt dev and just deploy like usual.
I have been relentlessly practicing this new Git deploy workflow to demonstrate it at my upcoming talk at WordCamp LAX. This is what I have and please let me know if I am making any errors or being redundant. I am primarily a designer and front-end developer, so I am learning as I go along with a lot of these new technologies Roots has been adopting.
As I am looking at this, I am seeing that there may be some unnecessary steps with grunt in my workflow. Particularly Step 1 and Step 2 in Part III.
How can I add the tasks executed by grunt build into grunt watch? This way, I do not have to adjust wp-config.php and can simply deploy after saving customizations to the theme.