summaryrefslogtreecommitdiff
path: root/doc/update/4.0-to-4.1.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-04-30 09:29:30 +0200
committerYves Senn <yves.senn@gmail.com>2013-04-30 09:29:30 +0200
commita7ad09543ef415967b3d6ea25781601697f95571 (patch)
tree4b733776e957682fb1944446940fecacb54b4314 /doc/update/4.0-to-4.1.md
parente7adcaa55b01ced9139135aeef072c2ee776ed0d (diff)
downloadgitlab-ce-a7ad09543ef415967b3d6ea25781601697f95571.tar.gz
move the update guides from the wiki into the repo
Diffstat (limited to 'doc/update/4.0-to-4.1.md')
-rw-r--r--doc/update/4.0-to-4.1.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/update/4.0-to-4.1.md b/doc/update/4.0-to-4.1.md
new file mode 100644
index 00000000000..368351d0c91
--- /dev/null
+++ b/doc/update/4.0-to-4.1.md
@@ -0,0 +1,55 @@
+# From 4.0 to 4.1
+
+## Important changes
+
+* Resque replaced with Sidekiq
+* New options for configuration file added
+* Init.d script should be updated
+* __requires ruby1.9.3-p327__
+
+- - -
+
+### 1. Stop GitLab & Resque
+
+ sudo service gitlab stop
+
+### 2. Update GitLab
+
+```bash
+
+# Get latest code
+sudo -u gitlab -H git fetch
+sudo -u gitlab -H git checkout 4-1-stable
+
+# Install gems for MySQL
+sudo -u gitlab -H bundle install --without development test postgres
+
+# Migrate db
+sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
+
+```
+
+### 3. Replace init.d script with a new one
+
+```
+# backup old one
+sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old
+
+# get new one usign sidekiq
+sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
+sudo chmod +x /etc/init.d/gitlab
+
+```
+
+### 4. Check GitLab's status
+
+ sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
+
+
+### 5. Start GitLab & Sidekiq
+
+ sudo service gitlab start
+
+### 6. Remove old init.d script
+
+ sudo rm /etc/init.d/gitlab.old