about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-03 19:51:25 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-03 23:37:42 -0800
commit3afcd3e4c340624a59a9eccc8bb1c10f70216901 (patch)
tree8d8fafa75b3acae4075bf18b65141b51ec55c74d
parentc7f2242a53ceec6892bd72f0df771266d5193004 (diff)
downloadunicorn-3afcd3e4c340624a59a9eccc8bb1c10f70216901.tar.gz
Allow people to use "~" and relative paths, like all
of our other paths.
-rw-r--r--lib/unicorn/configurator.rb1
1 files changed, 1 insertions, 0 deletions
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