From d69f794d53a352d0cfdd500ca58589cc8babf167 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 Nov 2009 19:53:13 -0800 Subject: configurator: set ENV["PWD"] with working_directory, too Just in case anything depends on it, we'll have it set correctly because it's usually set by the $SHELL --- lib/unicorn/configurator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index d9af75e..93b7bf4 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -354,7 +354,8 @@ module Unicorn def working_directory(path) # just let chdir raise errors path = File.expand_path(path) - Dir.chdir(HttpServer::START_CTX[:cwd] = path) + Dir.chdir(path) + HttpServer::START_CTX[:cwd] = ENV["PWD"] = path end # expands "unix:path/to/foo" to a socket relative to the current path -- cgit v1.2.3-24-ge0c7