Using Bedrock + Sage to deploy with Capistrano (theme Gulp dist files?)

For anyone falling on this thread, @swalkinshaw has provided an example he hasn’t yet tested.

Needs a correction invoke 'deploy:compile_assets is not a native task.

Theres this thread (Bedrock & Roots: Copying Production Assets with Capistrano - #2 by bigsweater) where the discussion is around using a manifest within the deploy.rb / see https://gist.github.com/nateroling/22b51c0cfbe210b00698

Just remove invoke 'deploy:compile_assets on this line https://gist.github.com/swalkinshaw/9e4556d4b0c402eba29a#file-deploy-rb-L63 and it will run.

To be safe and since I don’t have roles setup, I changed https://gist.github.com/nateroling/22b51c0cfbe210b00698#file-deploy-addendum-rb-L50 to on roles(:app) do

Also please note that bash shortcuts don’t work as per @bigsweater suggested on that thread, so the paths to local files need to be absolute.

“Figured it out. Using the ~ homedir shortcut doesn’t work in Capistrano, at least for the upload! method, because SCP don’t play that. ~ is a Bash shortcut, not SCP, so SCP wasn’t finding the directory, naturally.”

1 Like