Created
January 18, 2013 03:28
-
-
Save lscott3/4562127 to your computer and use it in GitHub Desktop.
Run rake task from capistrano
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
desc 'Run the sqlite dump after deploy' | |
task :sqlite_dump_dev do | |
rake = fetch(:rake, 'rake') | |
rails_env = fetch(:rails_env, 'development') | |
run "cd '#{current_path}' && #{rake} sqlite_dump RAILS_ENV=#{rails_env}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment