From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: [RFC/PATCH] Bundler/Sandbox documentation updates
Date: Thu, 10 Mar 2011 13:29:03 -0800 [thread overview]
Message-ID: <20110310212903.GB7801@dcvr.yhbt.net> (raw)
In-Reply-To: <4D7845C6.2070301@gmail.com>
Lawrence Pit <lawrence.pit@gmail.com> wrote:
> Eric Wong <normalperson@yhbt.net> wrote:
>> I've tried this a few times, and everytime I get something like this:
>>> https://gist.github.com/331b0decab62fd58483c
>> Yikes, it looks like the UNICORN_FD env is getting clobbered somehow.
>> Not sure what could be causing that.
>>
>>> If I revert back to setting the GEM_HOME, GEM_PATH and PATH in the
>>> before_exec it works fine.
> > Which Bundler version is this with?
>
> Bundler 1.0.10
Odd, I actually used this in my Rainbows! config file to switch an
Isolate deploy to Bundler (1.0.10) yesterday. Everything for Rainbows!
applies to Unicorn, too).
# switching from Isolate to Bundler:
if ENV["GEM_HOME"] =~ %r{/isolate/}
ENV.delete "GEM_HOME"
ENV.delete "GEM_PATH"
# don't need anything else in $PATH for a web server
ENV["PATH"] = "/home/ew/ruby-1.9.2/bin"
# START_CTX is considered a stable interface in Unicorn
start_ctx = Unicorn::HttpServer::START_CTX
start_ctx[0] = "bundle"
# it's even possible to use USR2 to switch between Unicorn and
# Rainbows! without any downtime :)
start_ctx[:argv] = %w(exec rainbows).concat(start_ctx[:argv])
end
--
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
prev parent reply other threads:[~2011-03-10 21:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 4:40 [RFC/PATCH] Bundler/Sandbox documentation updates Eric Wong
2011-03-08 14:22 ` Justin Giancola
2011-03-10 0:49 ` Eric Wong
2011-03-09 10:39 ` Lawrence Pit
2011-03-10 0:52 ` Eric Wong
2011-03-10 3:30 ` Lawrence Pit
2011-03-10 21:29 ` Eric Wong [this message]
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://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110310212903.GB7801@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=mongrel-unicorn@rubyforge.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.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.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).