From 2d5a4b075801493a85c6e8d2dbdf0c95002e046d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Jun 2010 13:42:34 -0700 Subject: doc: emphasize the importance of stderr_path While second nature to myself, stderr_path may be an overlooked configuration parameter for some users. Also, add a minimal sample configuration file that is shorter and hopefully less intimidating to new users. --- examples/unicorn.conf.minimal.rb | 13 +++++++++++++ examples/unicorn.conf.rb | 12 +++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 examples/unicorn.conf.minimal.rb (limited to 'examples') diff --git a/examples/unicorn.conf.minimal.rb b/examples/unicorn.conf.minimal.rb new file mode 100644 index 0000000..2a47910 --- /dev/null +++ b/examples/unicorn.conf.minimal.rb @@ -0,0 +1,13 @@ +# Minimal sample configuration file for Unicorn (not Rack) when used +# with daemonization (unicorn -D) started in your working directory. +# +# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete +# documentation. +# See also http://unicorn.bogomips.org/examples/unicorn.conf.rb for +# a more verbose configuration using more features. + +listen 2007 # by default Unicorn listens on port 8080 +worker_processes 2 # this should be >= nr_cpus +pid "/path/to/app/shared/pids/unicorn.pid" +stderr_path "/path/to/app/shared/log/unicorn.log" +stdout_path "/path/to/app/shared/log/unicorn.log" diff --git a/examples/unicorn.conf.rb b/examples/unicorn.conf.rb index e209894..37c3e81 100644 --- a/examples/unicorn.conf.rb +++ b/examples/unicorn.conf.rb @@ -1,4 +1,9 @@ -# Sample configuration file for Unicorn (not Rack) +# Sample verbose configuration file for Unicorn (not Rack) +# +# This configuration file documents many features of Unicorn +# that may not be needed for some applications. See +# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb +# for a much simpler configuration file. # # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete # documentation. @@ -22,8 +27,9 @@ timeout 30 # feel free to point this anywhere accessible on the filesystem pid "/path/to/app/shared/pids/unicorn.pid" -# some applications/frameworks log to stderr or stdout, so prevent -# them from going to /dev/null when daemonized here: +# By default, the Unicorn logger will write to stderr. +# Additionally, ome applications/frameworks log to stderr or stdout, +# so prevent them from going to /dev/null when daemonized here: stderr_path "/path/to/app/shared/log/unicorn.stderr.log" stdout_path "/path/to/app/shared/log/unicorn.stdout.log" -- cgit v1.2.3-24-ge0c7