* [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments
@ 2016-02-29 1:45 6% Eric Wong
0 siblings, 0 replies; 3+ results
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 [relevance 6%]
* [PATCH 0/4] various example updates
@ 2016-02-29 0:02 7% Eric Wong
2016-02-29 0:02 6% ` [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Eric Wong
0 siblings, 1 reply; 3+ results
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 [relevance 7%]
* [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments
2016-02-29 0:02 7% [PATCH 0/4] various example updates Eric Wong
@ 2016-02-29 0:02 6% ` Eric Wong
0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2016-02-29 0:02 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 [relevance 6%]
Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-02-29 0:02 7% [PATCH 0/4] various example updates Eric Wong
2016-02-29 0:02 6% ` [PATCH 2/4] examples/cgi-webrick.rb: set CGIPathEnv, update comments Eric Wong
2016-02-29 1:45 6% Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).