简体   繁体   中英

Override capistrano deploy:assets:precompile command in rubber

I am making use of rubber for deploying to an amazon ec2 server. I want to override the deploy:assets:precompile task to make it compile locally. I am adding the task in the deploy.rb file but it doesn't seem to be using that.
Here is the gist for the deploy file: https://gist.github.com/bipinshashi/1952e36f9b6bab1c64f4

I finally figured out the issue - Had to comment out

load 'deploy/assets'

in deploy.rb and add the code within the "if Rubber::Util.has_asset_pipeline?" block. Here is a gist with the correct code: https://gist.github.com/bipinshashi/703792fa31a5fb0f46f3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM