Commit c4bf88f96f31b0ff73939702b137f79383d28d1d

Authored by Axilleas Pipinellis
1 parent 01c8aae8

Clear redis cache and precompile assets during update to 6.0. Fix #4874 #4840

As a consequence on the namespaces change from 5.4 to 6.0, after upgrade
lots of links on the dashboard were not working (pointing to projects
without the group part on the url).
Also, after upgrading to 6.0-stable, the network (branch history) function
does not work. The progress bar rotates forever, but the network graph cannot
be generated.

Clearing redis cache fixes those issues.
Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
doc/update/5.4-to-6.0.md
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 4
5 #### Global projects 5 #### Global projects
6 6
7 -We deprecated root(global) namespace for projects. 7 +We deprecated root(global) namespace for projects.
8 So you need to move all your global projects under group/users manually before update or they will be automatically moved to the owner namespace during the update. 8 So you need to move all your global projects under group/users manually before update or they will be automatically moved to the owner namespace during the update.
9 9
10 #### Teams 10 #### Teams
@@ -62,7 +62,7 @@ cd /home/git/gitlab @@ -62,7 +62,7 @@ cd /home/git/gitlab
62 # MySQL 62 # MySQL
63 sudo -u git -H bundle install --without development test postgres --deployment 63 sudo -u git -H bundle install --without development test postgres --deployment
64 64
65 -#PostgreSQL 65 +# PostgreSQL
66 sudo -u git -H bundle install --without development test mysql --deployment 66 sudo -u git -H bundle install --without development test mysql --deployment
67 67
68 sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production 68 sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
@@ -71,8 +71,12 @@ sudo -u git -H bundle exec rake migrate_global_projects RAILS_ENV=production @@ -71,8 +71,12 @@ sudo -u git -H bundle exec rake migrate_global_projects RAILS_ENV=production
71 sudo -u git -H bundle exec rake migrate_keys RAILS_ENV=production 71 sudo -u git -H bundle exec rake migrate_keys RAILS_ENV=production
72 sudo -u git -H bundle exec rake migrate_inline_notes RAILS_ENV=production 72 sudo -u git -H bundle exec rake migrate_inline_notes RAILS_ENV=production
73 73
74 -sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production 74 +# Clear redis cache
  75 +sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
75 76
  77 +# Clear and precompile assets
  78 +sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
  79 +sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
76 ``` 80 ```
77 81
78 ### 6. Update config files 82 ### 6. Update config files