From 68f0393c15de0a647344d00ace0a438847a69fb2 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Mon, 7 Dec 2015 17:20:52 -0200 Subject: [PATCH] Runs gitlab precompile task. --- cookbooks/gitlab/recipes/default.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index 661bab6..0834914 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -101,4 +101,5 @@ end execute 'fix-relative-url-for-assets' do command 'sed -i \'s/# config.relative_url_root = "\/gitlab"/config.relative_url_root = "\/gitlab"/\' /usr/lib/gitlab/config/application.rb' + command 'sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production' end -- libgit2 0.21.2