Best way to version a rails app? -


What is the best way to get a rail application? We want to be involved in more structured test cycles and per build per set version is a part of it. We use subversion, but I want to avoid using revision numbers for editions. Is this an easy way to do it automatically? Or should I just define an app_version method in App Assistant?

(We are using subversion for source control)

  Diff ap_version "$ id $" expiration  

$ Id $ is a keyword that svn will extend (the above link can use other) Now, we set the keyword's property on that file so that SVN knows that it should replace the keywords (let's go to app_helper.rb Values S):

  svn propce svn: keyword "id" application_helper.rb svn ci application_helper.rb  

Now if you see application_helper.rb It will be read (by the way, by changing the version, date, user name)

  deaf ap_version "$ Id: application_helper.rb 282 2009-06-26 10: 34: 17J $ root $" End  

Obviously, you can specify it in a variable and it can parse the required format, it is included in your visual templates etc. Or do the same thing, but instead of application_helper.rb, just use a file named VERSION in your code


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -