Skip to content

Commit

Permalink
Add symlinks for deploys in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mlainez committed Sep 11, 2011
1 parent d9132d6 commit 5e51c4a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/deploy/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
run "cd #{current_path}/ && rake RAILS_ENV=\"testing\" db:migrate:reset --trace"
end

desc "Removng pictures"
task :remove_pictures do
run "cd #{current_path}/ && rm -rf public/system/*"
end

task :symlink_members_pictures do
run "ln -s #{deploy_to}/shared/system/ #{deploy_to}/current/public/system"
end

desc "Seeding Database"
task :rake_db_seed do
run "cd #{current_path}/ && rake RAILS_ENV=\"testing\" db:seed --trace"
Expand All @@ -36,5 +45,5 @@
task t, :roles => :app do ; end
end

after "deploy:update", "deploy:rake_db_migrate", "deploy:rake_db_seed"
after "deploy:update", "deploy:rake_db_migrate", "deploy:remove_pictures", "symlink_members_pictures", "deploy:rake_db_seed"
end

0 comments on commit 5e51c4a

Please sign in to comment.