configurator: add "working_directory" directive
commit171df888464ec24d94a8e92e38742f86ac55d0f7
authorEric Wong <normalperson@yhbt.net>
Sun, 1 Nov 2009 19:56:16 +0000 (1 11:56 -0800)
committerEric Wong <normalperson@yhbt.net>
Sun, 1 Nov 2009 19:57:13 +0000 (1 11:57 -0800)
tree75dd699efe76103e7a1e87785869647b079ef642
parent66a99327d91e3dd1974e615aa985759f984c5c64
configurator: add "working_directory" directive

This basically a prettier way of saying:

  Dir.chdir(Unicorn::HttpServer::START_CTX[:cwd] = path)

In the config file.  Unfortunately, this is configuration
directive where order matters and you should specify it
before any other path[1] directives if you're using relative
paths (relative paths are not recommended anyways)

[1] pid, stderr_path, stdout_path
lib/unicorn/configurator.rb
test/exec/test_exec.rb