Skip to content

Instantly share code, notes, and snippets.

@eccyan
Created June 25, 2014 10:56
Show Gist options
  • Select an option

  • Save eccyan/74dee6699123ab85d935 to your computer and use it in GitHub Desktop.

Select an option

Save eccyan/74dee6699123ab85d935 to your computer and use it in GitHub Desktop.
Capistranoでroleが空の場合でも処理を続行させる方法 ref: http://qiita.com/eccyan/items/e494e418eed2e3fc9f79
`deploy:your_task' is only run for servers matching {:roles=>[:role]}, but no servers matched
namespace :deploy
task :change_pathes, :roles => :special_roles, :on_no_matching_servers => :continue do
# 処理
end
end
after "deploy:update", "deploy:change_paths"
** skipping `deploy:change_pathes' because no servers matched
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment