Created
October 4, 2009 02:33
-
-
Save danielsdeleo/201068 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # 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. |
This file contains hidden or 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
| ## 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