Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/update/3.0-to-3.1.md')
-rw-r--r--doc/update/3.0-to-3.1.md34
1 files changed, 11 insertions, 23 deletions
diff --git a/doc/update/3.0-to-3.1.md b/doc/update/3.0-to-3.1.md
index 5f06f818d10..3206df3499b 100644
--- a/doc/update/3.0-to-3.1.md
+++ b/doc/update/3.0-to-3.1.md
@@ -1,26 +1,22 @@
# From 3.0 to 3.1
-__IMPORTANT!__
+**IMPORTANT!**
-In this release __we moved Resque jobs under own gitlab namespace__.
+In this release **we moved Resque jobs under own gitlab namespace**
-Despite a lot of advantages it requires from our users to __replace gitolite post-receive hook with new one__.
+Despite a lot of advantages it requires from our users to **replace gitolite post-receive hook with new one**.
-Most of projects has post-receive file as symlink to gitolite `/home/git/.gitolite/hooks/post-receive`.
-But some of them may have a real file. In this case you should rewrite it with symlink to gitolite hook.
+Most of projects has post-receive file as symlink to gitolite `/home/git/.gitolite/hooks/post-receive`. But some of them may have a real file. In this case you should rewrite it with symlink to gitolite hook.
I wrote a bash script which will do it automatically for you. Just make sure all path inside is valid for you
-- - -
-
-### 1. Stop server & resque
+## 1. Stop server & resque
sudo service gitlab stop
-### 2. Update GitLab
+## 2. Update GitLab
```bash
-
# Get latest code
sudo -u gitlab -H git fetch
sudo -u gitlab -H git checkout v3.1.0
@@ -35,12 +31,11 @@ sudo -u gitlab -H bundle install --without development test postgres sqlite
# Migrate db
sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
-
```
-### 3. Update post-receive hooks
+## 3. Update post-receive hooks
-#### Gitolite 3
+### Gitolite 3
Step 1: Rewrite post-receive hook
@@ -60,7 +55,7 @@ sudo -u gitlab -H vim lib/support/rewrite-hooks.sh
sudo -u git -H lib/support/rewrite-hooks.sh
```
-#### Gitolite v2
+### Gitolite v2
Step 1: rewrite post-receive hook for gitolite 2
@@ -71,7 +66,6 @@ sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
Step 2: Replace symlinks in project to valid place
-
#!/bin/bash
src="/home/git/repositories"
for dir in `ls "$src/"`
@@ -90,19 +84,13 @@ Step 2: Replace symlinks in project to valid place
fi
done
-
-### 4. Check app status
+## 4. Check app status
```bash
-
# Check APP Status
sudo -u gitlab -H bundle exec rake gitlab:app:status RAILS_ENV=production
-
-
-
```
-
-### 5. Start all
+## 5. Start all
sudo service gitlab start