On Thu, Feb 28, 2013 at 10:01:45AM +0100, Josip Rodin wrote: > On Thu, Feb 28, 2013 at 09:37:26AM +0100, Josip Rodin wrote: > > So I followed the bare instructions in the SVN::Web manual page, > > installed mod_perl and replaced index.cgi with index.psgi: > > > > #!/usr/bin/perl -w > > # paste from Plack::Handler::Apache2(3pm) > > Ah, this was wrong. I don't need a custom handler, the default logic will > take just the SVN-Web.psqi. But it has to have absolute paths, otherwise > it's broken. > > use SVN::Web; > SVN::Web::load_config('/var/www/intsvn/private/svnweb/config.yaml'); > my $handler = sub { SVN::Web->run_psgi(@_) }; > # uncomment this __END__ if you dont want to have plack deliver /css > #__END__ > use Plack::Builder; > use Plack::App::Directory; > my $css = Plack::App::Directory->new({ root => > '/var/www/intsvn/private/svnweb/css' })->to_app; > builder { > mount '/css' => $css, > mount '/' => $handler, > } > > Finally, I can see r12463 on the web. So you can close the bug once you > fix the egregious upgrade issues.
Ah, I should also document the other, perhaps not obvious parts: * you need to ship both the template/ and css/ directories from the source * the config.yaml file version variable needs to be changed to match 0.63 * you need to add a templatedirs setting with the full path to the template dir in the config.yaml file -- 2. That which causes joy or happiness. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org