Skip to content

Instantly share code, notes, and snippets.

@teohm
Last active December 19, 2015 13:40
Show Gist options
  • Save teohm/5963985 to your computer and use it in GitHub Desktop.
Save teohm/5963985 to your computer and use it in GitHub Desktop.
An attempt to reason about Capistrano v3 flow, by renaming the hooks. I'm not suggesting to rename all hooks in Capistrano v3. It is used only to help me to group tasks into the correct hooks.
deploy
--
start
new_release
new_release_ready
publish
cleanup
finish
rollback
--
start
revert_release
revert_release_ready
publish
cleanup_rollback
finish
deploy
--
start
ensure_stage
check
new_release
create_release
symlink:shared
new_release_ready
bundle
data_migrate
compile_assets
cleanup_assets
publish
symlink:release
restart
cleanup
finish
log_revision
rollback
--
start
ensure_stage
check
revert_release
revert_release_ready
rollback_assets
publish
symlink:release
restart
cleanup_rollback
finish
log_revision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment