From: Eric Wong <e@80x24.org>
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 [thread overview]
Message-ID: <20160229014553.16033-2-e@80x24.org> (raw)
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
next reply other threads:[~2016-02-29 1:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 1:45 Eric Wong [this message]
2016-02-29 1:45 ` [PATCH 3/4] examples: various Apache-related doc updates Eric Wong
2016-02-29 1:45 ` [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 0:02 [PATCH 0/4] various example updates Eric Wong
2016-02-29 0:02 ` [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160229014553.16033-2-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).