efficiency20/ops_middleware — Issue #5: Can REVISION and revision from git get out of step?
Author: airblade
Created: 2012-02-17 16:28:51+00:00
State: open

Let's say I make a change to my Rails app which introduces a syntax error.

I successfully deploy the new version with Capistrano.

Unicorn tries to restart with the new version but finds that it's broken, so keeps going with the old version.

At this point is it possible for the REVISION file on disk to disagree with the revision reported by Git?

Would it be possible for the two to differ if, instead of Capistrano's timestamped directories, one were using an in-place git reset?