using an alternate installation path

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

using an alternate installation path

David Carson
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.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: using an alternate installation path

David Sitsky
Administrator
Hi David,

Thanks for your email - I've committed it in.  1.9.7-rc2 will have
this change in it.

Cheers,
David

On Fri, Oct 10, 2008 at 6:24 AM, David Carson <[hidden email]> wrote:

> 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.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user