diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-03 19:51:25 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-03 23:37:42 -0800 |
commit | 3afcd3e4c340624a59a9eccc8bb1c10f70216901 (patch) | |
tree | 8d8fafa75b3acae4075bf18b65141b51ec55c74d /lib/unicorn | |
parent | c7f2242a53ceec6892bd72f0df771266d5193004 (diff) | |
download | unicorn-3afcd3e4c340624a59a9eccc8bb1c10f70216901.tar.gz |
Allow people to use "~" and relative paths, like all of our other paths.
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/configurator.rb | 1 |
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 |