Commit 3f65f14f16b4f2ae10a205e88f12635ac59a70e6

Authored by Jacob Vosmaer
1 parent 96dc3a68

Clear the cache during upgrades

files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
... ... @@ -83,7 +83,7 @@ template_symlink File.join(gitlab_rails_etc_dir, "gitlab.yml") do
83 83 mode "0644"
84 84 variables(node['gitlab']['gitlab-rails'].to_hash)
85 85 restarts dependent_services
86   - notifies :run, "execute[clear the gitlab-rails cache]"
  86 + notifies :run, 'execute[clear the gitlab-rails cache]'
87 87 end
88 88  
89 89 template_symlink File.join(gitlab_rails_etc_dir, "rack_attack.rb") do
... ... @@ -123,6 +123,7 @@ end
123 123 remote_file File.join(gitlab_rails_dir, 'VERSION') do
124 124 source "file:///opt/gitlab/embedded/service/gitlab-rails/VERSION"
125 125 notifies :run, 'execute[migrate database]'
  126 + notifies :run, 'execute[clear the gitlab-rails cache]'
126 127 end
127 128  
128 129 execute "chown -R #{node['gitlab']['user']['username']} /opt/gitlab/embedded/service/gitlab-rails/public"
... ...