I’m able to deploy with Capistrano and all is mostly well. However, my theme (built on Sage) doesn’t have the dist folder and all of the assets etc on the server when I deploy. I could add dist to the git repo and then it would be deployed t o the server that way, but it seems like I should probably be using Capistrano to generate these during deployment or something?
How do I configure Capistrano to run gulp --production and deploy the dist directory and all of its assets to my server during a Capistrano deploy?
Or maybe I’m looking at this the wrong way and there’s something obvious I am overlooking. What I want is to be able to run bundle exec cap staging(/production) deploy
and have my Sage theme dist files included and on the server. What’s the best way to go about doing this?
There are some great resources for Bedrock, and some great resources for Sage. Are there any resources for using these two together?