From: Chris W. <ch...@cw...> - 2005-04-17 23:56:29
|
On Apr 16, 2005, at 11:10 PM, Ken Youens-Clark wrote: >> That's a half-truth -- when you fire up the server the libs from >> pkg/book-xx/ are copied to tmplib/. We do this so we don't have 15+ >> directories on @INC. > > When you say "when [I] fire up the server," do you mean when using > "oi2_daemon"? To try to understand this copying-to-tmplib part > better, I tried altering in the "pkg" dir and starting both oi2_daemon > and Apache, and I couldn't see how/when the copy was being made. It happens whether you start up the server from apache, standalone, cgi-bin, whatever sets up the OpenInteract2::Context object kicks off the process. However, what I left out from my earlier explanation (didn't think it was relevant) is that we don't do it every single time. It can be an expensive operation, especially if you're using network-mounted drives. So after the first time we only do the copying if the directory doesn't exist or if you've installed a new package. You can see the docs (and code) in OpenInteract2::Setup::CreateTemporaryLibraryDirectory for more. Chris -- Chris Winters Creating enterprise-capable snack systems since 1988 |