diff --git a/docs/documentation/advanced-features/ssh-kit/index.markdown b/docs/documentation/advanced-features/ssh-kit/index.markdown index 2dfc5a19c..c44323c15 100644 --- a/docs/documentation/advanced-features/ssh-kit/index.markdown +++ b/docs/documentation/advanced-features/ssh-kit/index.markdown @@ -12,7 +12,7 @@ on roles(:app), in: :sequence, wait: 5 do within "/opt/sites/example.com" do # commands in this block execute in the # directory: /opt/sites/example.com - as :deploy do + as :deploy do # commands in this block execute as the "deploy" user. with rails_env: :production do # commands in this block execute with the environment diff --git a/lib/capistrano/tasks/deploy.rake b/lib/capistrano/tasks/deploy.rake index 28d5c5c89..ca1c18ec9 100644 --- a/lib/capistrano/tasks/deploy.rake +++ b/lib/capistrano/tasks/deploy.rake @@ -236,7 +236,7 @@ namespace :deploy do end desc "Place a REVISION file with the current revision SHA in the current release path" - task :set_current_revision do + task :set_current_revision do on release_roles(:all) do within release_path do execute :echo, "\"#{fetch(:current_revision)}\" > REVISION"