Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…for the majority of use cases; have documented the other options for people who need to customise this via the :release_name functionality.
- Loading branch information
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems to cause breakage; at least, what we were seeing is that Capistrano started running db:migrate commands out of a previous release instead of the release that was being deployed.
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same problem here. Not using any custom release name.
On my last deploy I observed that the current_release was pointing to the oldest release in the releases directory. I worked around it by changing current_release to latest_release wherever I used it in my own code.
current_release is also used in db:migrate and deploy:cleanup. When I ran deploy:cleanup, it removed all but the oldest 5 releases!
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Either :releases has to be in reverse chronological order (as you would get when sorting with "ls -t" and reversing) or :current_release needs to take the first (and :previous_release the second) entry.
I'm guessing the intention was to change from using ls lexicographical sort to using directory timestamps. (Perhaps covering the case where directories are not named after timestamps?) Seems reasonable, but the "reverse" needs to be taken out, since -t lists most recent first, and lexicographical sort will yield most recent last.
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 It took a while to see that capistrano, and not my git repo or server, was causing weird errors like "no such file as config/boot" and "no such file as config/database.yml". Reverting to from 2.5.11 back to 2.5.10 fixed this issue.
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(that was +1 for the comments about issues, not the commit)
92941e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest release (hit gemcutter an hour ago) also Kieran, this isnt' really a monitored forum, please use the appropriate places (google groups, and lighthouse app)