summaryrefslogtreecommitdiff
path: root/doc/install
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-15 14:49:02 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-15 14:49:02 +0000
commit892371bc22813abe855f563bf4f0ee355fe067ab (patch)
tree75b70ce1b85e5e46af602c6c88e34e34f8d09a40 /doc/install
parent09b23228dfa2242e4123e10091f8a0194ecdc3de (diff)
parent5704e6fee9d2dea67c4a91b43d06a9958484d29b (diff)
downloadgitlab-ce-892371bc22813abe855f563bf4f0ee355fe067ab.tar.gz
Merge branch 'redis_socket' into 'master'
Use sockets to connect to Redis See merge request !1088
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/installation.md24
1 files changed, 22 insertions, 2 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 1175aff9dd9..ce9d45526d0 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -133,7 +133,21 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
# Try connecting to the new database with the new user
sudo -u git -H psql -d gitlabhq_production
-## 5. GitLab
+## 5. Redis
+
+ sudo apt-get install redis-server
+
+ # 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
+
+## 6. GitLab
# We'll install GitLab into home directory of the user "git"
cd /home/git
@@ -193,6 +207,12 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
sudo -u git -H git config --global user.email "example@example.com"
sudo -u git -H git config --global core.autocrlf input
+ # 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
+
**Important Note:** Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
**Note:** If you want to use HTTPS, see [Using HTTPS](#using-https) for the additional steps.
@@ -288,7 +308,7 @@ Check if GitLab and its environment are configured correctly:
# or
sudo /etc/init.d/gitlab restart
-## 6. Nginx
+## 7. Nginx
**Note:** Nginx is the officially supported web server for GitLab. If you cannot or do not want to use Nginx as your web server, have a look at the [GitLab recipes](https://gitlab.com/gitlab-org/gitlab-recipes/).