diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-12 14:59:58 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-12 14:59:58 +0200 |
commit | 5704e6fee9d2dea67c4a91b43d06a9958484d29b (patch) | |
tree | 427db590f3aef27ea68393b18c99502f28f03757 /doc/update/7.2-to-7.3.md | |
parent | a034a4665229425d5b3eff3082069b9ab1b57ab4 (diff) | |
download | gitlab-ce-5704e6fee9d2dea67c4a91b43d06a9958484d29b.tar.gz |
Use sockets to connect to Redis
Diffstat (limited to 'doc/update/7.2-to-7.3.md')
-rw-r--r-- | doc/update/7.2-to-7.3.md | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/doc/update/7.2-to-7.3.md b/doc/update/7.2-to-7.3.md index 7cc8f8e2ede..f6af9d56860 100644 --- a/doc/update/7.2-to-7.3.md +++ b/doc/update/7.2-to-7.3.md @@ -7,4 +7,25 @@ This document currently just serves as a place to keep track of updates that wil ### Update config files * HTTP setups: Make `/etc/nginx/sites-available/nginx` the same as https://gitlab.com/gitlab-org/gitlab-ce/blob/7-0-stable/lib/support/nginx/gitlab but with your settings. -* HTTPS setups: Make `/etc/nginx/sites-available/nginx-ssl` the same as https://gitlab.com/gitlab-org/gitlab-ce/blob/7-0-stable/lib/support/nginx/gitlab-ssl but with your setting
\ No newline at end of file +* HTTPS setups: Make `/etc/nginx/sites-available/nginx-ssl` the same as https://gitlab.com/gitlab-org/gitlab-ce/blob/7-0-stable/lib/support/nginx/gitlab-ssl but with your setting + +### Configure Redis to use sockets + + # Configure redis to use sockets + sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.orig + sed -e 's/^# unixsocket /unixsocket /' -e 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf + # Activate the changes to redis.conf + sudo service redis-server restart + # Add git to the redis group + sudo usermod -aG redis git + + cd /home/git/gitlab + # Configure Redis connection settings + sudo -u git -H cp config/resque.yml.example config/resque.yml + # Change the Redis socket path if necessary + sudo -u git -H editor config/resque.yml + + cd /home/git/gitlab-shell + # Configure gitlab-shell to use Redis sockets + sudo -u git -H sed -i 's|^ # socket.*| socket: /var/run/redis/redis.sock|' config.yml + |