Eirik Dentz Sinclair <[email protected]> wrote: > Lawrence, Jamie > > Thanks very much for your responses. > > The before_exec block in Lawrence's gist was just what was needed. Not sure > how many others are using Capistrano and bundler, but seems like that > before_exec block would be a good addition to this page: > http://unicorn.bogomips.org/Sandbox.html > > Thanks again for the help.
Thanks for confirming the fix. I've updated the Sandbox document with the following patch. Patches/pull-requests to the mailing list for documentation are very much appreciated, especially for Bundler and maybe other things I don't use myself. Lets try to treat the in-source documentation much like a wiki, except anybody who grabs the source also has the latest up-to-date docs ready for offline reading (and readable without a web browser :) >From 1a75966a5d1a1f6307ed3386e2f91a28bbb72ca0 Mon Sep 17 00:00:00 2001 From: Eric Wong <[email protected]> Date: Wed, 15 Sep 2010 14:42:54 -0700 Subject: [PATCH] doc: update Sandbox document for Bundler Thanks to Lawrence Pit, Jamie Wilkinson, and Eirik Dentz Sinclair. ref: mid.gmane.org/[email protected] ref: mid.gmane.org/[email protected] --- Sandbox | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Sandbox b/Sandbox index d2f7590..d101106 100644 --- a/Sandbox +++ b/Sandbox @@ -24,6 +24,9 @@ this: Then use HUP to reload, and then continue with the USR2+QUIT upgrade sequence. +Environment variable pollution when exec-ing a new process (with USR2) +is the primary issue with sandboxing tools such as Bundler and Isolate. + == Bundler === Running @@ -42,6 +45,12 @@ This is no longer be an issue as of bundler 0.9.17 ref: http://mid.gmane.org/[email protected] +=== Other ENV pollution issues + +You may need to set or reset BUNDLE_GEMFILE, GEM_HOME, GEM_PATH and PATH +environment variables in the before_exec hook as illustrated by +http://gist.github.com/534668 + == Isolate === Running -- Eric Wong _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
