diff options
author | varac <varacanero@zeromail.org> | 2013-02-04 17:26:56 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-02-04 17:26:56 +0100 |
commit | 07cc737f655c9fc0afe50e9850963120114ee18e (patch) | |
tree | e3cbfbbac60d5ff4cd9e1ba6cadd4a9d4790972e | |
parent | 3b32d321b131723bbd830945ef4176d7d37b6e3c (diff) |
compile assets for webapp, fixes #1628
-rw-r--r-- | puppet/modules/site_webapp/manifests/init.pp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp index 24c258dc..ff5a3611 100644 --- a/puppet/modules/site_webapp/manifests/init.pp +++ b/puppet/modules/site_webapp/manifests/init.pp @@ -55,7 +55,15 @@ class site_webapp { command => '/bin/bash -c "/usr/bin/bundle check || /usr/bin/bundle install"', unless => '/usr/bin/bundle check', timeout => 600, - require => [ Class['bundler::install'], Vcsrepo['/srv/leap-webapp'] ]; + require => [ Class['bundler::install'], Vcsrepo['/srv/leap-webapp'] ], + notify => Service['apache']; + } + + exec { 'compile_assets': + cwd => '/srv/leap-webapp', + command => '/bin/bash -c "/usr/bin/bundle exec rake assets:precompile"', + require => Exec['bundler_update'], + notify => Service['apache']; } file { |