[Codestriker-user] using an alternate installation path
Brought to you by:
sits
|
From: David C. <dcc...@gm...> - 2008-10-09 19:24:37
|
I like to install the new version of CS to a path that coexists with the
deployed version, allowing me to test new features, integrate my own changes
and make sure they still work, etc.
To do this, I have two entries in my httpd.conf file, one for the deployed
version
http://<host>/codestriker/...
and one for the test version
http://<host>/codestriker_tst/...
I also have to change codestriker_css in codestriker.conf for the test
version, since the URL will include the "_tst" suffix. One place where this
does not work (1.9.6) is the calculation of the help URL (doc_url). The
diff below shows how I fixed it. I'm not sure why the greedy "?" qualifier
did not work correctly, but the result for me is $htmlurl becomes "http:"
and therefore doc_url is wrong. My solution is simpler, in that you do not
need a greedy qualifier.
Index: lib/Codestriker/Http/UrlBuilder.pm
===================================================================
--- lib/Codestriker/Http/UrlBuilder.pm (revision 9)
+++ lib/Codestriker/Http/UrlBuilder.pm (working copy)
@@ -38,7 +38,7 @@
$Codestriker::codestriker_css ne "" &&
$Codestriker::codestriker_css =~ /[\/\\]/o) {
$htmlurl = $Codestriker::codestriker_css;
- $htmlurl =~ s/\/.+?\.css//;
+ $htmlurl =~ s/\/[^\/]+\.css//;
}
else {
# Standard Codestriker deployment.
|