From 6aabf1157aa94ddd504e8d01a146c98583a1f182 Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Sun, 1 Apr 2012 14:44:02 -0500 Subject: [PATCH] Move Unicorn unix socket out of /tmp --- config/unicorn.rb.orig | 2 +- doc/installation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/unicorn.rb.orig b/config/unicorn.rb.orig index 541ea535..23746d25 100644 --- a/config/unicorn.rb.orig +++ b/config/unicorn.rb.orig @@ -13,7 +13,7 @@ timeout 30 #listen 8080 # listen to port 8080 on all TCP interfaces #listen "127.0.0.1:8080" # listen to port 8080 on the loopback interface -listen "/tmp/gitlab.socket" +listen "#{app_dir}/tmp/sockets/gitlab.socket" pid "#{app_dir}/tmp/pids/unicorn.pid" stderr_path "#{app_dir}/log/unicorn.stderr.log" diff --git a/doc/installation.md b/doc/installation.md index 00a48377..da9aa85f 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -220,7 +220,7 @@ Application can be started with next command: Edit /etc/nginx/nginx.conf. Add next code to **http** section: upstream gitlab { - server unix:/tmp/gitlab.socket; + server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket; } server {