Skip to content

Instantly share code, notes, and snippets.

@xtoddx
Created February 13, 2014 19:28
Show Gist options
  • Save xtoddx/8982079 to your computer and use it in GitHub Desktop.
Save xtoddx/8982079 to your computer and use it in GitHub Desktop.
capistrano notes
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