unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 0/4] various example updates
@ 2016-02-29  0:02 Eric Wong
  2016-02-29  0:02 ` [PATCH 1/4] examples/: PSGI " Eric Wong
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Eric Wong @ 2016-02-29  0:02 UTC (permalink / raw)
  To: meta

TODO: manpages for -httpd...

Eric Wong (4):
      examples/: PSGI example updates
      examples/cgi-webrick.rb: set CGIPathEnv, update comments
      examples: various Apache-related doc updates
      examples/public-inbox.psgi: relax license to GPL-3.0+

 examples/README                | 13 ++++++-------
 examples/apache2_cgi.conf      |  5 +++--
 examples/apache2_perl.conf     | 42 +++++++++++++++---------------------------
 examples/apache2_perl_old.conf | 38 ++++++++++++++++++++++++++++++++++++++
 examples/cgi-webrick.rb        |  5 ++++-
 examples/public-inbox.psgi     | 14 ++++++++++++--
 6 files changed, 78 insertions(+), 39 deletions(-)


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments
@ 2016-02-29  1:45 Eric Wong
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Wong @ 2016-02-29  1:45 UTC (permalink / raw)
  To: meta

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-29  1:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29  0:02 [PATCH 0/4] various example updates Eric Wong
2016-02-29  0:02 ` [PATCH 1/4] examples/: PSGI " Eric Wong
2016-02-29  0:02 ` [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Eric Wong
2016-02-29  0:02 ` [PATCH 3/4] examples: various Apache-related doc updates Eric Wong
2016-02-29  0:02 ` [PATCH 4/4] examples/public-inbox.psgi: relax license to GPL-3.0+ Eric Wong
  -- strict thread matches above, loose matches on Subject: below --
2016-02-29  1:45 [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).