symlink-aware start_ctx[:cwd]
commit72d09ad565e0844a1429fbe8bc83930ed676f737
authorEric Wong <normalperson@yhbt.net>
Mon, 2 Mar 2009 22:42:04 +0000 (2 14:42 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 3 Mar 2009 19:13:15 +0000 (3 11:13 -0800)
tree15c4b5cf7d4b91d97eedc5ace12f1470a45b4203
parent571f38c6c9efd776b0704ddba35078c972289de6
symlink-aware start_ctx[:cwd]

Using `/bin/sh -c pwd` here instead of Dir.pwd since
the pwd shell builtin is symlink-aware if ENV['PWD']
is correct (and it is when launched via Cap).

Also, correctly use @directory if it is set.
lib/unicorn.rb