Commit f5d30b23d9dbe623cbe1b4783cf7d865d5267d95
1 parent
001a3c05
Exists in
master
and in
54 other branches
gitlab: don't try compiling assets at runtime
We compile them on installation, so there should be no need to do that at runtime.
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
specs/gitlab/gitlab.spec
| ... | ... | @@ -77,6 +77,12 @@ mkdir -p %{buildroot}/etc/gitlab |
| 77 | 77 | mv config/gitlab.yml %{buildroot}/etc/gitlab/gitlab.yml |
| 78 | 78 | cp config/unicorn.rb.example %{buildroot}/etc/gitlab/unicorn.rb |
| 79 | 79 | cp config/database.yml.postgresql %{buildroot}/etc/gitlab/database.yml |
| 80 | +cat > config/initializers/no_asset_compile.rb <<EOF | |
| 81 | +Gitlab::Application.configure do | |
| 82 | + # assets already compiled | |
| 83 | + config.assets.compile = false | |
| 84 | +end | |
| 85 | +EOF | |
| 80 | 86 | |
| 81 | 87 | sed -i 's/\/home\/\git/\/usr\/lib/' %{buildroot}/etc/gitlab/unicorn.rb |
| 82 | 88 | ... | ... |