From 3afcd3e4c340624a59a9eccc8bb1c10f70216901 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 Nov 2009 19:51:25 -0800 Subject: configurator: working_directory is expanded Allow people to use "~" and relative paths, like all of our other paths. --- lib/unicorn/configurator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 1f0852a..d9af75e 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -353,6 +353,7 @@ module Unicorn # directives (or avoid relative paths entirely). def working_directory(path) # just let chdir raise errors + path = File.expand_path(path) Dir.chdir(HttpServer::START_CTX[:cwd] = path) end -- cgit v1.2.3-24-ge0c7