From: Jakub Narebski Date: Sat, 03 Mar 2012 17:57:02 GMT Subject: [RFC/PATCH 4/5] gitweb.psgi: Allow passing arguments to Plack::Runner Message-ID: <1330797423-22926-5-git-send-email-jnareb@gmail.com> In-Reply-To: <1330797423-22926-1-git-send-email-jnareb@gmail.com> Command options after first '--' are passed literally to Plack::Runner as arguments, in addition to default ones used. This way you can select PSGI server, host, port, etc. Signed-off-by: Jakub Narebski --- Could be squashed with 4/5, now that I realized that it is that simple. gitweb/gitweb.perl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 0dbdd15..6bd7b08 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1312,7 +1312,8 @@ sub run_psgi_app { my $runner = Plack::Runner->new(); $runner->parse_options(qw(--env deployment), - qw(--host 127.0.0.1)); + qw(--host 127.0.0.1), + @ARGV); $runner->run($app); } } -- 1.7.9