From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 86EE920310 for ; Mon, 29 Feb 2016 01:45:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Date: Mon, 29 Feb 2016 01:45:51 +0000 Message-Id: <20160229014553.16033-2-e@80x24.org> List-Id: webrick clears PATH otherwise, and we rely on git commands. --- examples/cgi-webrick.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/cgi-webrick.rb b/examples/cgi-webrick.rb index 21e336d..5554a01 100644 --- a/examples/cgi-webrick.rb +++ b/examples/cgi-webrick.rb @@ -1,13 +1,16 @@ #!/usr/bin/env ruby # Sample configuration using WEBrick, mainly intended dev/testing # for folks familiar with Ruby and not various Perl webserver -# deployment options. +# deployment options. For those familiar with Perl web servers, +# plackup(1) is recommended for development and public-inbox-httpd(1) +# is our production deployment server. require 'webrick' require 'logger' options = { :BindAddress => '127.0.0.1', :Port => 8080, :Logger => Logger.new($stderr), + :CGIPathEnv => ENV['PATH'], # need to run 'git' commands :AccessLog => [ [ Logger.new($stdout), WEBrick::AccessLog::COMBINED_LOG_FORMAT ] ], -- EW