Last active
January 2, 2016 08:49
-
-
Save umhan35/8279173 to your computer and use it in GitHub Desktop.
capistrano 3: run rails rake task on server
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 "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