diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-04 11:11:44 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-04 11:11:44 -0800 |
commit | 551789f8619b567333bbf41020323f4e1624841c (patch) | |
tree | 0785474d929b9708b0f76916c5b8e582a0fefcfd /bin/unicorn | |
parent | b9db429c2bac961f8ef040d3dc2061ab14a94a5b (diff) | |
download | unicorn-551789f8619b567333bbf41020323f4e1624841c.tar.gz |
Unicorn will always continue to run in the directory it started in, it does not chdir to "/". Since the default start_ctx[:cwd] is symlink-aware, this should not be a problem for Capistrano-deployed applications.
Diffstat (limited to 'bin/unicorn')
-rwxr-xr-x | bin/unicorn | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/unicorn b/bin/unicorn index 3b467c9..d421f18 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -71,10 +71,6 @@ opts = OptionParser.new("", 24, ' ') do |opts| listeners << address end - opts.on("-C", "--directory PATH", "run in this directory") do |d| - options[:directory] = d - end - opts.on("-c", "--config-file FILE", "Unicorn-specific config file") do |f| options[:config_file] = File.expand_path(f) end @@ -174,11 +170,10 @@ if daemonize # 0000 and potentially exposing sensitive log data can be bad # policy. # * Don't bother to chdir here since Unicorn is designed to - # run inside APP_ROOT (or whatever the "directory" directive - # specifies). Unicorn will also re-chdir() to the directory - # it was started in when being re-executed to pickup code - # changes if the original deployment directory is a symlink - # or otherwise got replaced. + # run inside APP_ROOT. Unicorn will also re-chdir() to + # the directory it was started in when being re-executed + # to pickup code changes if the original deployment directory + # is a symlink or otherwise got replaced. end Unicorn.run(app, options) |