Commit 1064b242fa9cffe6814102f14438e44d571176c2
Exists in
master
and in
11 other branches
Merge branch 'cache_clear' into 'master'
Clear the Rails cache after modifying gitlab.yml
Showing
2 changed files
with
7 additions
and
0 deletions
Show diff stats
CHANGELOG
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
| ... | ... | @@ -83,6 +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 | 87 | end |
| 87 | 88 | |
| 88 | 89 | template_symlink File.join(gitlab_rails_etc_dir, "rack_attack.rb") do |
| ... | ... | @@ -114,3 +115,8 @@ end |
| 114 | 115 | end |
| 115 | 116 | |
| 116 | 117 | execute "chown -R #{node['gitlab']['user']['username']} /opt/gitlab/embedded/service/gitlab-rails/public" |
| 118 | + | |
| 119 | +execute "clear the gitlab-rails cache" do | |
| 120 | + command "/opt/gitlab/bin/gitlab-rake cache:clear" | |
| 121 | + action :nothing | |
| 122 | +end | ... | ... |