From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: running unicorn under rvm Date: Mon, 16 Aug 2010 20:52:02 -0700 Message-ID: <20100817035202.GA2570@dcvr.yhbt.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282017133 26454 80.91.229.12 (17 Aug 2010 03:52:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 03:52:13 +0000 (UTC) Cc: unicorn list To: Joseph McDonald Original-X-From: mongrel-unicorn-bounces@rubyforge.org Tue Aug 17 05:52:11 2010 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:671 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OlDDf-0007YR-Ed for gclrug-mongrel-unicorn@m.gmane.org; Tue, 17 Aug 2010 05:52:11 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C1FB019783B7; Mon, 16 Aug 2010 23:52:10 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 57F8E1858373 for ; Mon, 16 Aug 2010 23:52:05 -0400 (EDT) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 8CD071F500; Tue, 17 Aug 2010 03:52:02 +0000 (UTC) Joseph McDonald wrote: > unicorn 1.1.2 runs fine under my system ruby, but when trying to run > it using rvm, I get: > > > % rvm use 1.8.7 > info: Using ruby 1.8.7 p299 > > % unicorn > /home/joe/.rvm/gems/ruby-1.8.7-p299/gems/unicorn-1.1.2/lib/unicorn/configurator.rb:494:in > `eval': undefined local variable or method `host' for main:Object > (NameError) Hi Joseph, Is there any chance you have an older "unicorn" executable script somewhere that gets exposed rvm switches the environment on you? That's the only thing I can think of right now. > line 494 looks like: > > # XXX ugly as hell, WILL FIX in 2.x (along with Rainbows!/Zbatery) Yes, I still need to work on 2.x and clean up a lot of the ugly internal API bits :) -- Eric Wong P.S.: At least nowadays I'm (finally) getting some experience developing/supporting applications using Unicorn and Rainbows! (or Zbatery). Things like e4d0b226391948ef433f1d0135814315e4c48535 in unicorn.git are a direct result of that. _______________________________________________ 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