Created
February 13, 2014 19:28
-
-
Save xtoddx/8982079 to your computer and use it in GitHub Desktop.
capistrano notes
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
Default deployment scenario: | |
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/framework.rake#L59 | |
(all of which start as empty tasks) | |
starting started | |
updating updated | |
publishing published | |
finishing finished | |
including capistrano/deploy adds a few more hooks | |
starting => check | |
updating => new_relase_path, git:create_release, symlink:shared | |
publishing => symlink:release | |
finishing => cleanup | |
finished => log_revision | |
+ reverting / revert_release | |
+ restart (empty) | |
+ failed (empty) | |
Should add deploy:published => deploy:restart and after(restart, check_service) | |
Is there a way to run a task if an `execute` fails? IE to trigger deploy:revert_release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment