Agile Web Development

Build it. Launch it. Love it.

Version Number

Version number gives you an easy way to get the Subversion revision number in your apps.

It has a Capistrano hook (automatically installed) to save the SVN revision on each deploy.

Anywhere in your app, you can use the constant APP_VERSION to give the version of your code.

Locally, APP_VERSION will return ‘local’.

After your next deploy, the APP_VERSION on the server will return the revision reported by your source repository.

In your views, you can also use the helper method:

        <%= app_version %>

Vitals

Home http://source.collectiveidea.com/public/rails/plugins/version_number
Repository http://source.collectiveidea.com/public/rails/plugins/version_number
License Rails' (MIT)
Tags Tag_red capistrano collectiveidea helper revision subversion version versionnumber
Rating (1 vote)
Owner Daniel Morrison, Collective Idea
Created 2 April 2007

Comments

Add a comment