diff options
author | Eric Wong <e@80x24.org> | 2016-02-28 22:40:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-28 23:58:05 +0000 |
commit | 17e9e2b0df6d445883b2822c49c971fb9abe3c0e (patch) | |
tree | e7693599366dc4a868985ce0faa61563dd162b8f | |
parent | 0449c3c4ac1a60dde24225d648546362c3bc3fa1 (diff) | |
download | public-inbox-17e9e2b0df6d445883b2822c49c971fb9abe3c0e.tar.gz |
webrick clears PATH otherwise, and we rely on git commands.
-rw-r--r-- | examples/cgi-webrick.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/cgi-webrick.rb b/examples/cgi-webrick.rb index 21e336d5..5554a012 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 ] ], |