diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2011-11-04 21:01:27 +0100 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2011-11-04 21:01:27 +0100 |
| commit | 336831ab79b7fdeb13a6ac22595bff1a4449b635 (patch) | |
| tree | bbd37c248abf58fa2359da4c594c89d11fd69943 /nginx_unicorn/unicorn.rb | |
| parent | aa7db0efe69f213798304e9ddcc1b5a2aadd68cc (diff) | |
| download | dotfiles-336831ab79b7fdeb13a6ac22595bff1a4449b635.tar.gz dotfiles-336831ab79b7fdeb13a6ac22595bff1a4449b635.zip | |
Getting more work done on the nginx/unicorn configuration
Diffstat (limited to 'nginx_unicorn/unicorn.rb')
| -rw-r--r-- | nginx_unicorn/unicorn.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nginx_unicorn/unicorn.rb b/nginx_unicorn/unicorn.rb index 5149547..b0f194f 100644 --- a/nginx_unicorn/unicorn.rb +++ b/nginx_unicorn/unicorn.rb @@ -8,15 +8,15 @@ NCORES = `cat /proc/cpuinfo | grep 'cores' | uniq | sed 's/[^0-9]//g'`.to_i # Setting up the working directory and some paths working_directory WD pid "#{WD}/tmp/pids/unicorn.pid" -stderr_path "#{WD}/log/unicorn.rem.sock" -stdout_path "#{WD}/log/unicorn.rem.sock" +stderr_path "#{WD}/log/unicorn.my_app_name.sock" +stdout_path "#{WD}/log/unicorn.my_app_name.sock" # We want one worker per core. worker_processes NCORES # Listen on a Unix domain socket. I'm using a shorter backlog # for quicker failover when busy. -listen '/tmp/unicorn.rem.sock', backlog: 64 +listen '/tmp/unicorn.my_app_name.sock', backlog: 64 # nuke workers after 30 seconds instead of 60 seconds (the default) timeout 30 |
