summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-02-04 17:26:56 +0100
committervarac <varacanero@zeromail.org>2013-02-04 17:26:56 +0100
commit07cc737f655c9fc0afe50e9850963120114ee18e (patch)
treee3cbfbbac60d5ff4cd9e1ba6cadd4a9d4790972e /puppet/modules/site_webapp/manifests
parent3b32d321b131723bbd830945ef4176d7d37b6e3c (diff)
compile assets for webapp, fixes #1628
Diffstat (limited to 'puppet/modules/site_webapp/manifests')
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp10
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 {