Tracking deployed svn revision

Sometimes it’s useful to know which subversion revision is installed on your website.

I propose simple solution for this. Each time you or somebody update your website, run the command:

svnversion /path/to/your/working/copy > version && scp version login@domain.tld:./version

It will get global revision from your working copy and uploads a file to website, so you can check revision anytime just by opening http://domain.tld/version

Tags:

AddThis Social Bookmark Button

Leave a Reply