Skip to content

Instantly share code, notes, and snippets.

@umhan35
Last active January 2, 2016 08:49
Show Gist options
  • Save umhan35/8279173 to your computer and use it in GitHub Desktop.
Save umhan35/8279173 to your computer and use it in GitHub Desktop.
capistrano 3: run rails rake task on server
desc "DESC"
task TASK: ['deploy:set_rails_env'] do
on roles :app do
within release_path do
# within current_path do
with rails_env: fetch(:rails_env) do
execute "rake", "another:task"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment