Created
June 25, 2014 10:56
-
-
Save eccyan/74dee6699123ab85d935 to your computer and use it in GitHub Desktop.
Capistranoでroleが空の場合でも処理を続行させる方法 ref: http://qiita.com/eccyan/items/e494e418eed2e3fc9f79
This file contains hidden or 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
| `deploy:your_task' is only run for servers matching {:roles=>[:role]}, but no servers matched |
This file contains hidden or 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
| namespace :deploy | |
| task :change_pathes, :roles => :special_roles, :on_no_matching_servers => :continue do | |
| # 処理 | |
| end | |
| end | |
| after "deploy:update", "deploy:change_paths" |
This file contains hidden or 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
| ** 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