Commit 539a1679da501786e94aaddb270b335c28139795
1 parent
ccd99095
Exists in
master
and in
79 other branches
Compile static assets
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
gitlab.spec
... | ... | @@ -87,6 +87,7 @@ ln -s /var/log/gitlab %{buildroot}/usr/lib/gitlab/log |
87 | 87 | ln -s /var/lib/gitlab/tmp %{buildroot}/usr/lib/gitlab/tmp |
88 | 88 | ln -s /var/lib/gitlab/.gitlab_shell_secret %{buildroot}/usr/lib/gitlab/.gitlab_shell_secret |
89 | 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 | 92 | %post |
92 | 93 | groupadd git || true |
... | ... | @@ -111,8 +112,11 @@ if [ /usr/bin/redis-server ]; then |
111 | 112 | service redis enable |
112 | 113 | fi |
113 | 114 | |
115 | +mkdir -p /var/lib/gitlab-assets | |
116 | + | |
114 | 117 | cd /usr/lib/gitlab/ |
115 | 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 | 121 | %postun |
118 | 122 | #TODO Remove | ... | ... |