summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index f0d6c90a..46cc0ed6 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -52,8 +52,9 @@ class site_webapp {
exec { 'bundler_update':
cwd => '/srv/leap-webapp',
- command => '/bin/bash -c "/usr/bin/bundle check || /usr/bin/bundle install"',
+ command => '/bin/bash -c "/usr/bin/bundle check || /usr/bin/bundle install --path vendor/bundle"',
unless => '/usr/bin/bundle check',
+ user => 'leap-webapp',
timeout => 600,
require => [ Class['bundler::install'], Vcsrepo['/srv/leap-webapp'] ],
notify => Service['apache'];
@@ -62,6 +63,7 @@ class site_webapp {
exec { 'compile_assets':
cwd => '/srv/leap-webapp',
command => '/bin/bash -c "/usr/bin/bundle exec rake assets:precompile"',
+ user => 'leap-webapp',
require => Exec['bundler_update'],
notify => Service['apache'];
}