Skipping asset compilation

20 views
Skip to first unread message

Nick Hoffman

unread,
Mar 27, 2013, 11:31:41 PM3/27/13
to capis...@googlegroups.com
Hi guys. In config/deploy.rb , I have:

namespace :deploy do
  namespace :assets do
    task :precompile, :roles => :web, :except => { :no_release => true } do
      puts '***** Skipping asset compilation *****'
    end
  end
end

However, when I deploy, that message isn't printed. Instead, the normal deploy:assets:precompile runs and begins compiling the assets. What am I doing wrong?

I'm using rvm-capistrano v1.2.7 and capistrano v2.13.5 .

Thanks for your help.
Nick

Lee Hambley

unread,
Mar 28, 2013, 3:51:06 AM3/28/13
to capis...@googlegroups.com
Why not just skip loading the assest extension?

--
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
---
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nick Hoffman

unread,
Mar 28, 2013, 9:34:12 AM3/28/13
to capis...@googlegroups.com
Hi Lee. I didn't realize that could be done. I just commented out this line from Capfile, and assets are no longer compiled when deploying:
    load 'deploy/assets'

Out of curiousity, why was the deploy:assets:precompile task not being overridden with my customization?

Thanks,
Nick

Lee Hambley

unread,
Mar 28, 2013, 10:45:05 AM3/28/13
to capis...@googlegroups.com
Out of curiousity, why was the deploy:assets:precompile task not being overridden with my customization?

I'm genuinely not sure, might be something weird with it's implementation, I didn't actually write it, and I've never used it!
Reply all
Reply to author
Forward
0 new messages