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

**URL:** https://discourse.roots.io/t/using-bedrock-sage-to-deploy-with-capistrano-theme-gulp-dist-files/3325
**Category:** uncategorized
**Created:** 2015-03-24T06:48:09Z
**Posts:** 22
**Showing post:** 8 of 22

## Post 8 by @rodrigo — 2015-04-02T05:18:09Z

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](https://discourse.roots.io/t/bedrock-roots-copying-production-assets-with-capistrano/2187/2)) where the discussion is around using a manifest within the deploy.rb / see [https://gist.github.com/nateroling/22b51c0cfbe210b00698](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](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](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.”

---

_[View the full topic](https://discourse.roots.io/t/using-bedrock-sage-to-deploy-with-capistrano-theme-gulp-dist-files/3325)._
