From 8376c3398071c63cdc97ebf67673b3109e0cb730 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 6 Apr 2017 14:01:41 -0700 Subject: [PATCH] change staging unicorn to use unix socket --- config/unicorn/production.rb | 2 +- config/unicorn/staging.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/unicorn/production.rb b/config/unicorn/production.rb index 6df356592..1ecc2c75b 100644 --- a/config/unicorn/production.rb +++ b/config/unicorn/production.rb @@ -6,7 +6,7 @@ worker_processes 22 timeout 180 #listen "127.0.0.1:9000", :tcp_nopush => true -listen "/tmp/.unicorn.sock", :backlog => 256 +listen "/tmp/.unicorn.sock", :backlog => 512 # Spawn unicorn master worker for user apps (group: apps) user 'albert', 'albert' diff --git a/config/unicorn/staging.rb b/config/unicorn/staging.rb index 669dce85c..4bb84cebe 100644 --- a/config/unicorn/staging.rb +++ b/config/unicorn/staging.rb @@ -6,7 +6,7 @@ worker_processes 2 preload_app true timeout 180 -listen "127.0.0.1:9000" +listen "/tmp/.unicorn.sock", :backlog => 512 # Spawn unicorn master worker for user apps (group: apps) user 'danbooru', 'danbooru'