Commit 539a1679da501786e94aaddb270b335c28139795

Authored by Alexandre Barbosa
1 parent ccd99095

Compile static assets

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
@@ -87,6 +87,7 @@ ln -s /var/log/gitlab %{buildroot}/usr/lib/gitlab/log @@ -87,6 +87,7 @@ ln -s /var/log/gitlab %{buildroot}/usr/lib/gitlab/log
87 ln -s /var/lib/gitlab/tmp %{buildroot}/usr/lib/gitlab/tmp 87 ln -s /var/lib/gitlab/tmp %{buildroot}/usr/lib/gitlab/tmp
88 ln -s /var/lib/gitlab/.gitlab_shell_secret %{buildroot}/usr/lib/gitlab/.gitlab_shell_secret 88 ln -s /var/lib/gitlab/.gitlab_shell_secret %{buildroot}/usr/lib/gitlab/.gitlab_shell_secret
89 ln -s /var/lib/gitlab/.secret %{buildroot}/usr/lib/gitlab/.secret 89 ln -s /var/lib/gitlab/.secret %{buildroot}/usr/lib/gitlab/.secret
  90 +ln -s /var/lib/gitlab-assets %{buildroot}/usr/lib/gitlab/public/assets
90 91
91 %post 92 %post
92 groupadd git || true 93 groupadd git || true
@@ -111,8 +112,11 @@ if [ /usr/bin/redis-server ]; then @@ -111,8 +112,11 @@ if [ /usr/bin/redis-server ]; then
111 service redis enable 112 service redis enable
112 fi 113 fi
113 114
  115 +mkdir -p /var/lib/gitlab-assets
  116 +
114 cd /usr/lib/gitlab/ 117 cd /usr/lib/gitlab/
115 yes yes | sudo -u git bundle exec rake gitlab:setup RAILS_ENV=production 118 yes yes | sudo -u git bundle exec rake gitlab:setup RAILS_ENV=production
  119 +bundle exec rake assets:precompile RAILS_ENV=production
116 120
117 %postun 121 %postun
118 #TODO Remove 122 #TODO Remove