From 539a1679da501786e94aaddb270b335c28139795 Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Thu, 11 Dec 2014 12:35:29 -0500 Subject: [PATCH] Compile static assets --- gitlab.spec | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/gitlab.spec b/gitlab.spec index 1e33487..67d1e31 100644 --- a/gitlab.spec +++ b/gitlab.spec @@ -87,6 +87,7 @@ ln -s /var/log/gitlab %{buildroot}/usr/lib/gitlab/log ln -s /var/lib/gitlab/tmp %{buildroot}/usr/lib/gitlab/tmp ln -s /var/lib/gitlab/.gitlab_shell_secret %{buildroot}/usr/lib/gitlab/.gitlab_shell_secret ln -s /var/lib/gitlab/.secret %{buildroot}/usr/lib/gitlab/.secret +ln -s /var/lib/gitlab-assets %{buildroot}/usr/lib/gitlab/public/assets %post groupadd git || true @@ -111,8 +112,11 @@ if [ /usr/bin/redis-server ]; then service redis enable fi +mkdir -p /var/lib/gitlab-assets + cd /usr/lib/gitlab/ yes yes | sudo -u git bundle exec rake gitlab:setup RAILS_ENV=production +bundle exec rake assets:precompile RAILS_ENV=production %postun #TODO Remove -- libgit2 0.21.2