Skip to content

Commit

Permalink
adds additional utility tasks for magento deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnson-xx committed Oct 11, 2012
1 parent e7acebb commit 576e1fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/ash/magento.rb
Expand Up @@ -127,6 +127,18 @@
break if stream == :err break if stream == :err
end end
end end

desc "Clear the Magento Cache"
task :cc, :roles => [:web, :app], :except => { :no_release => true } do
magento.purge_cache
sudo "rm -rf #{shared_path}/var/full_page_cache/*"
end

desc "Enable display errors"
task :enable_dev, :roles => :web, :except => { :no_release => true } do
run "perl -pi -e 's/#ini_set/ini_set/g' #{latest_release}/index.php"
end

end end


# -------------------------------------------- # --------------------------------------------
Expand Down

0 comments on commit 576e1fa

Please sign in to comment.