summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-03-08 06:22:23 +0000
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-03-08 06:22:23 +0000
commit75a67ac0c72b24b07d6fa032e92997eb66ec226e (patch)
treea08ed4a507cdb039c72e812a32963d0b174f7d97
parent015d7eeae6c95c2278139cf8be80897ddce2aba0 (diff)
parenta19b4e752918209a40cddfdf04cb2b7833017939 (diff)
downloadgitlab-ce-75a67ac0c72b24b07d6fa032e92997eb66ec226e.tar.gz
Merge branch 'bundle_clean' into 'master'
add bundle clean to upgrade docs This MR adds a bundle clean after installing new gems. Bundle clean removes old, not needed gems to keep the system clean. See merge request !2809
-rw-r--r--doc/update/8.4-to-8.5.md3
-rw-r--r--doc/update/patch_versions.md6
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/update/8.4-to-8.5.md b/doc/update/8.4-to-8.5.md
index 408a17ac348..0a9cb5683e7 100644
--- a/doc/update/8.4-to-8.5.md
+++ b/doc/update/8.4-to-8.5.md
@@ -64,6 +64,9 @@ sudo -u git -H bundle install --without postgres development test --deployment
# PostgreSQL installations (note: the line below states '--without mysql')
sudo -u git -H bundle install --without mysql development test --deployment
+# Optional: clean up old gems
+sudo -u git -H bundle clean
+
# Run database migrations
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
diff --git a/doc/update/patch_versions.md b/doc/update/patch_versions.md
index a10e62877ba..f446ed0a35b 100644
--- a/doc/update/patch_versions.md
+++ b/doc/update/patch_versions.md
@@ -62,7 +62,13 @@ sudo -u git -H bundle install --without development test mysql --deployment
# MySQL
sudo -u git -H bundle install --without development test postgres --deployment
+# Optional: clean up old gems
+sudo -u git -H bundle clean
+
+# Run database migrations
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
+
+# Clean up assets and cache
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
```