Skip to content

Instantly share code, notes, and snippets.

@swalberg
Last active December 14, 2015 20:59
Show Gist options
  • Save swalberg/5148074 to your computer and use it in GitHub Desktop.
Save swalberg/5148074 to your computer and use it in GitHub Desktop.
What's the difference between cap deploy and cap deploy:migrations, and where do I hook in?
NB: deploy:symlink is deprecated, don't hook into it!
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy.rb
deploy:migrations
update_code
strategy.deploy!
finalize_update
migrate
create_symlink <-- hook in here
restart <-- or here
deploy
update
update_code
strategy.deploy!
finalize_update
create_symlink
restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment