Skip to content

Instantly share code, notes, and snippets.

@fadhlirahim
Created August 10, 2010 05:19
Show Gist options
  • Save fadhlirahim/516736 to your computer and use it in GitHub Desktop.
Save fadhlirahim/516736 to your computer and use it in GitHub Desktop.
# Code snippet
# Cap recipe to run rake db:Seed on production server
namespace :deploy do
desc "Run rake db:seed on production machine"
task :db_seed, :roles => :app do
run "cd #{current_path}; rake RAILS_ENV=production db:seed"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment