more portable symlink awareness for START_CTX[:cwd]
commit9f707bc02ffba4e3b792aa7da325f9e550ea27c2
authorEric Wong <normalperson@yhbt.net>
Sat, 31 Oct 2009 21:14:52 +0000 (31 21:14 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 31 Oct 2009 21:22:14 +0000 (31 14:22 -0700)
tree7d394861887a067d72de9c1d80431e038c48cb58
parent2cb4226e52d5010eb4f92942e40499b6aa124262
more portable symlink awareness for START_CTX[:cwd]

`sh -c pwd` doesn't reliably read ENV["PWD"] on all platforms,
this means that directories that are symlinks may be ignored
and the real path is resolved.  This can be problematic when
doing upgrades for common deployment systems such as Capistrano
which rely on the working directory being a symlink.
lib/unicorn.rb