Commit 41c2cd1b2510a005e413392a1c90b89a1838c7ef
1 parent
e41b8481
Exists in
master
and in
4 other branches
Trigger Rails restart during version change
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
CHANGELOG
| ... | ... | @@ -7,6 +7,7 @@ omnibus-gitlab repository. |
| 7 | 7 | - Build: explicitly use .forward for sending notifications |
| 8 | 8 | - Fix MySQL build for Ubuntu 14.04 |
| 9 | 9 | - Built-in UDP log shipping (Enterprise Edition only) |
| 10 | +- Trigger Unicorn/Sidekiq restart during version change | |
| 10 | 11 | |
| 11 | 12 | 7.0.0-ee.omnibus.1 |
| 12 | 13 | - Fix MySQL build for Ubuntu 14.04 | ... | ... |
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
| ... | ... | @@ -165,6 +165,9 @@ remote_file File.join(gitlab_rails_dir, 'VERSION') do |
| 165 | 165 | source "file:///opt/gitlab/embedded/service/gitlab-rails/VERSION" |
| 166 | 166 | notifies :run, 'execute[migrate database]' unless postgresql_not_listening |
| 167 | 167 | notifies :run, 'execute[clear the gitlab-rails cache]' unless redis_not_listening |
| 168 | + dependent_services.each do |sv| | |
| 169 | + notifies :restart, sv | |
| 170 | + end | |
| 168 | 171 | end |
| 169 | 172 | |
| 170 | 173 | execute "chown -R #{node['gitlab']['user']['username']} /opt/gitlab/embedded/service/gitlab-rails/public" | ... | ... |