From 110b596a094f6ff6a53fcbfe6a3de6c494780b56 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Tue, 18 Oct 2011 15:42:25 -0700 Subject: [PATCH] capistrano seed --- config/deploy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/deploy.rb b/config/deploy.rb index fce94fb..8646b21 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -57,4 +57,9 @@ namespace :deploy do task :symlink_settings_yml, :roles => :app do run "ln -nfs #{deploy_to}/shared/config/settings.yml #{release_path}/config/settings.yml" end + + desc "Populates the Production Database" + task :seed do + run "cd #{current_path}; #{rake} db:seed RAILS_ENV=production" + end end