the svn rev number did not show up when you run tracks as a different user using --user and --group options of mongrel_rails. This was because svn is trying to open subversion options in the directory of the original user that is starting tracks. Pointing svn to an existing directory is enough for svn info to run.

Please note that this patch only changes the template. It does not change your own environment.rb. If you have the same problem, you'll need to change environment.rb by hand.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@717 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-02-28 08:40:07 +00:00
parent bb703c1838
commit d4843af2a2

View file

@ -85,7 +85,7 @@ end
MOBILE_CONTENT_TYPE = 'tracks/mobile'
Mime::Type.register(MOBILE_CONTENT_TYPE, :m)
info = `svn info`[/Last Changed Rev: (.*?)\n/]
info = `svn info --config-dir /etc/subversion`[/Last Changed Rev: (.*?)\n/]
if info
TRACKS_VERSION = '1.50-trunk-rev'+info[/(\d+)/]
else