Restart apache and celeryd on upgrade
When upgrading, after the migrate exec completes, notify the apache2 and askbot-celeryd services so they will be restarted. Change-Id: I0a7f3987d782c52e85aa2f87186d2beb367d5b6b
This commit is contained in:
parent
9898406b14
commit
bf2ac102e2
|
@ -90,10 +90,10 @@ class askbot::site::config (
|
|||
refreshonly => true,
|
||||
}
|
||||
|
||||
# TODO: end of chain: notify httpd, celeryd
|
||||
exec { 'askbot-migrate':
|
||||
cwd => "${site_root}/config",
|
||||
command => '/usr/askbot-env/bin/python manage.py migrate --noinput',
|
||||
notify => [Service['askbot-celeryd'], Service['apache2'] ],
|
||||
require => Exec['askbot-syncdb'],
|
||||
subscribe => [Git['askbot'], File["${site_root}/config/settings.py"] ],
|
||||
refreshonly => true,
|
||||
|
|
Loading…
Reference in New Issue