Skip to content

Instantly share code, notes, and snippets.

View adamelso's full-sized avatar
🚘

Adam Elsodaney adamelso

🚘
View GitHub Profile
@adamelso
adamelso / deploy.rb
Last active August 29, 2015 14:08 — forked from jmather/deploy.rb
after "deploy", "deploy:cleanup"
after "deploy:update_code", "composer:install"
before "composer:install", "composer:copy_vendors"
after "composer:install", "phpunit:run_tests"
namespace :composer do
desc "Copy vendors from previous release"
task :copy_vendors, :except => { :no_release => true } do
run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi"
end