summaryrefslogtreecommitdiff
path: root/doc/raketasks
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-19 07:19:56 -0700
committerStan Hu <stanhu@gmail.com>2015-06-19 07:23:45 -0700
commit9c47d69788f8d4293d6345698d5b161d8f60039a (patch)
tree1a9be754364fd4807e7855a4e94f50f03e1b0ecc /doc/raketasks
parent74a6732c0dfc1416cad382203544d9c4d6246f58 (diff)
downloadgitlab-ce-9c47d69788f8d4293d6345698d5b161d8f60039a.tar.gz
Update maintenance documentation to explain no need to recompile asssets for omnibus installations
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/maintenance.md13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/raketasks/maintenance.md b/doc/raketasks/maintenance.md
index 2aca91d5371..69171cd1765 100644
--- a/doc/raketasks/maintenance.md
+++ b/doc/raketasks/maintenance.md
@@ -165,13 +165,18 @@ sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
Sometimes during version upgrades you might end up with some wrong CSS or
missing some icons. In that case, try to precompile the assets again.
-For Omnibus-packages:
-```
-sudo gitlab-rake assets:precompile
-```
+Note that this only applies to source installations and does NOT apply to
+omnibus packages.
For installations from source:
```
cd /home/git/gitlab
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
```
+
+For omnibus versions, the unoptimized assets (JavaScript, CSS) are frozen at
+the release of upstream GitLab. The omnibus version includes optimized versions
+of those assets. Unless you are modifying the JavaScript / CSS code on your
+production machine after installing the package, there should be no reason to redo
+rake assets:precompile on the production machine. If you suspect that assets
+have been corrupted, you should reinstall the omnibus package.