Skip to content

Instantly share code, notes, and snippets.

@danielsdeleo
Created October 4, 2009 02:33
Show Gist options
  • Select an option

  • Save danielsdeleo/201068 to your computer and use it in GitHub Desktop.

Select an option

Save danielsdeleo/201068 to your computer and use it in GitHub Desktop.
# Idempotent deploy strategy #
/deploy/root/releases/<SCM-revision-id>/CODE
! git revision id's are not sequential, so the order must be stored in cache dir as JSON
Then, for
* deploy
- do nothing if trying to deploy the same rev as current
- deploy as usual with above modification otherwise
* force_deploy
- deploy as above regardless of revision
* rollback
- determine revision N-1 from JSON Cache.
- symlink that **** in.
## WTF TO NAME THIS? ##
Cap style:
C::P::D::Capistrano
C::P::D::Sequential
C::P::D::Timestamped
deploy_immediate
deploy_timestamped
Heroku Style
C::P::D::Heroku
C::P::D::Idempotent
C::P::D::Track
C::P::D::Revision
C::P::D::Reference
deploy_revision
deploy_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment