respect "working_directory" wrt config.ru
commit4accf4449390c649bce0b1c9d84314d65fd41f8e
authorEric Wong <normalperson@yhbt.net>
Thu, 10 Jun 2010 08:47:10 +0000 (10 08:47 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 10 Jun 2010 09:46:54 +0000 (10 09:46 +0000)
tree524a01dc72bb030de496986d29cdbc8183ce4919
parentbff55e030fa3dcd4ac24ec481a67d6f327d67797
respect "working_directory" wrt config.ru

Since we added support for the "working_directory" parameter, it
often became unclear where/when certain paths would be bound.

There are some extremely nasty dependencies and ordering issues
when doing this.  It's all pretty fragile, but works for now
and we even have a full integration test to keep it working.

I plan on cleaning this up 2.x.x to be less offensive to look
at (Rainbows! and Zbatery are a bit tied to this at the moment).

Thanks to Pierre Baillet for reporting this.

ref: http://mid.gmane.org/AANLkTimKb7JARr_69nfVrJLvMZH3Gvs1o_KwZFLKfuxy@mail.gmail.com
bin/unicorn
bin/unicorn_rails
lib/unicorn.rb
lib/unicorn/configurator.rb
lib/unicorn/launcher.rb
t/t0003-working_directory.sh [new file with mode: 0755]