From 336831ab79b7fdeb13a6ac22595bff1a4449b635 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Fri, 4 Nov 2011 21:01:27 +0100 Subject: Getting more work done on the nginx/unicorn configuration --- nginx_unicorn/unicorn.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nginx_unicorn/unicorn.rb') 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 -- cgit v1.2.3