Skip to content

Instantly share code, notes, and snippets.

@lscott3
Created January 18, 2013 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lscott3/4562127 to your computer and use it in GitHub Desktop.
Save lscott3/4562127 to your computer and use it in GitHub Desktop.
Run rake task from capistrano
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