Received: by 10.216.14.223 with SMTP id d73mr166317wed.7.1319920272165; Sat, 29 Oct 2011 13:31:12 -0700 (PDT) X-BeenThere: psgi-plack@googlegroups.com Received: by 10.227.148.207 with SMTP id q15ls10801172wbv.5.gmail; Sat, 29 Oct 2011 13:31:11 -0700 (PDT) Received: by 10.227.204.149 with SMTP id fm21mr634840wbb.3.1319920271080; Sat, 29 Oct 2011 13:31:11 -0700 (PDT) Received: by 10.227.204.149 with SMTP id fm21mr634839wbb.3.1319920271055; Sat, 29 Oct 2011 13:31:11 -0700 (PDT) Return-Path: Received: from ks28975.kimsufi.com (ks28975.kimsufi.com. [91.121.99.69]) by gmr-mx.google.com with ESMTPS id k17si6817934wbo.1.2011.10.29.13.31.09 (version=TLSv1/SSLv3 cipher=AES128-SHA); Sat, 29 Oct 2011 13:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of miko...@kucharski.name designates 91.121.99.69 as permitted sender) client-ip=91.121.99.69; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of miko...@kucharski.name designates 91.121.99.69 as permitted sender) smtp.mail=miko...@kucharski.name Received: from localhost (089-100-207202.ntlworld.ie [89.100.207.202]) by ks28975.kimsufi.com (OpenSMTPD) with ESMTP id 9bdac411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); Sat, 29 Oct 2011 22:31:09 +0200 (CEST) Date: Sat, 29 Oct 2011 21:31:07 +0100 From: Mikolaj Kucharski To: psgi-plack@googlegroups.com Subject: Re: Issues with Plack::App::PSGIBin under plackup Message-ID: <20111029203107.GI22938@openbsd-main.my.domain> Reply-To: Mikolaj Kucharski References: <20111029185712.GG22938@openbsd-main.my.domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Sat, Oct 29, 2011 at 12:22:48PM -0700, Tatsuhiko Miyagawa wrote: > On Sat, Oct 29, 2011 at 11:57 AM, Mikolaj Kucharski > wrote: > > > You can see that ``home'' did *not* change when it should. This is my > > issues. I'm learing Mojolicious and PSGIBin works perfectly (well, > > should anyway) for me as I can put bunch of testing script to a > > directories and see how they work, but ``app->home'' doesn't work as you > > can see above. > > I do understand the motivation but the way Mojolicious::Lite creates > namespaces and caches inside %ENV global variable, it doesn't work > nicely with multiple app environment like URLMap and PSGIBin. > > > - Can you advice where the problem can be? > > > > - Do you think it's Plack or Mojolicious issue? > > Look at the Mojolicious::Lite source code and you can easily locate > the use of %ENV. Just so I can be sure, do you mean line number 15? https://metacpan.org/source/SRI/Mojolicious-2.15/lib/Mojolicious/Lite.pm#L15 -- best regards q#