Created
August 10, 2010 05:19
-
-
Save fadhlirahim/516736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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