summaryrefslogtreecommitdiff
path: root/doc/update/patch_versions.md
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-23 09:53:08 +0100
committerRémy Coutable <remy@rymai.me>2017-01-09 09:59:20 +0100
commit0c212fae1975ed0cb0030b6abe2c740c89ff480d (patch)
treef204f8f198364f674cb70277311552dffa66e32f /doc/update/patch_versions.md
parent8ab94120ee0a87c7b1158ebafea101e3952ec758 (diff)
downloadgitlab-ce-26014-fix-update-doc.tar.gz
Re-order update steps in the 8.14 -> 8.15 upgrade guide26014-fix-update-doc
1. Gems need to be installed before we can run the gitlab:workhorse:install task 1. Update gitlab-shell after gitlab-workhorse since it's a manual step that needs to be done in `/home/git/gitlab-shell` Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'doc/update/patch_versions.md')
-rw-r--r--doc/update/patch_versions.md39
1 files changed, 22 insertions, 17 deletions
diff --git a/doc/update/patch_versions.md b/doc/update/patch_versions.md
index 685972cfb41..54d523b59fd 100644
--- a/doc/update/patch_versions.md
+++ b/doc/update/patch_versions.md
@@ -14,6 +14,7 @@ user on the database version)
```bash
cd /home/git/gitlab
+
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```
@@ -32,28 +33,13 @@ current version with `cat VERSION`).
```bash
cd /home/git/gitlab
+
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- Gemfile.lock db/schema.rb
sudo -u git -H git checkout LATEST_TAG -b LATEST_TAG
```
-### 3. Update gitlab-shell to the corresponding version
-
-```bash
-cd /home/git/gitlab-shell
-sudo -u git -H git fetch
-sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_SHELL_VERSION` -b v`cat /home/git/gitlab/GITLAB_SHELL_VERSION`
-```
-
-### 4. Update gitlab-workhorse to the corresponding version
-
-```bash
-cd /home/git/gitlab
-
-sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production
-```
-
-### 5. Install libs, migrations, etc.
+### 3. Install libs, migrations, etc.
```bash
cd /home/git/gitlab
@@ -74,6 +60,23 @@ sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
```
+### 4. Update gitlab-workhorse to the corresponding version
+
+```bash
+cd /home/git/gitlab
+
+sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production
+```
+
+### 5. Update gitlab-shell to the corresponding version
+
+```bash
+cd /home/git/gitlab-shell
+
+sudo -u git -H git fetch --all --tags
+sudo -u git -H git checkout v`cat /home/git/gitlab/GITLAB_SHELL_VERSION` -b v`cat /home/git/gitlab/GITLAB_SHELL_VERSION`
+```
+
### 6. Start application
```bash
@@ -86,6 +89,8 @@ sudo service nginx restart
Check if GitLab and its environment are configured correctly:
```bash
+cd /home/git/gitlab
+
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
```