Skip to content
Newer
Older
100644 16 lines (14 sloc) 523 Bytes
7b31273 Bundle capistrano task for minification.
Dean Strelau authored Apr 13, 2010
1 Capistrano::Configuration.instance(:must_exist).load do
2 after 'deploy:update_code', 'deploy:asset_hat:minify'
3
4 namespace :deploy do
5 namespace :asset_hat do
8bcc33d @rondevera Updated example Capistrano task to use non-verbose minification
rondevera authored Sep 24, 2010
6 desc 'Minify all CSS/JS with AssetHat'
7b31273 Bundle capistrano task for minification.
Dean Strelau authored Apr 13, 2010
7 task :minify, :roles => :assets, :except => {:no_release => true} do
8 rake = fetch(:rake, "rake")
8bcc33d @rondevera Updated example Capistrano task to use non-verbose minification
rondevera authored Sep 25, 2010
9 env = fetch(:environment, fetch(:rails_env, "production"))
71daa5d @saulius Fix capistrano deployment task
saulius authored May 13, 2011
10 run "cd #{release_path} ; " +
9ac4b1e @rondevera Updated readme and Capistrano example to reflect `FORMAT=short`|dot o…
rondevera authored Nov 10, 2010
11 "#{rake} RAILS_ENV=#{env} FORMAT=short asset_hat:minify"
7b31273 Bundle capistrano task for minification.
Dean Strelau authored Apr 13, 2010
12 end
13 end
14 end
15 end
Something went wrong with that request. Please try again.