On 1 September 2011 09:23, malclocke <malclo...@gmail.com> wrote:
> I guess ideally I'd like to include the git commit id in code somehow,
> but svn style keyword substitution seems to be discouraged.  I'd like
> the solution to work if the deployed code is not actually a git
> checkout.  I'd like a solution that doesn't require me to manually
> update a config version number somewhere.

I create a git tag to mark each deploy and allow easy diffs between
deploys, etc.

During each deploy, I run "git describe --abbrev=0 > db/tag.txt" to
output the current tag to a file. That's then used in the code when I
want to check the release/build version.

James

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to