Merge "Restart apache and celeryd on upgrade"
This commit is contained in:
commit
03f98dff41
|
@ -90,10 +90,10 @@ class askbot::site::config (
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: end of chain: notify httpd, celeryd
|
|
||||||
exec { 'askbot-migrate':
|
exec { 'askbot-migrate':
|
||||||
cwd => "${site_root}/config",
|
cwd => "${site_root}/config",
|
||||||
command => '/usr/askbot-env/bin/python manage.py migrate --noinput',
|
command => '/usr/askbot-env/bin/python manage.py migrate --noinput',
|
||||||
|
notify => [Service['askbot-celeryd'], Service['apache2'] ],
|
||||||
require => Exec['askbot-syncdb'],
|
require => Exec['askbot-syncdb'],
|
||||||
subscribe => [Git['askbot'], File["${site_root}/config/settings.py"] ],
|
subscribe => [Git['askbot'], File["${site_root}/config/settings.py"] ],
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
|
|
Loading…
Reference in New Issue