]> git.pld-linux.org Git - packages/gitlab-ce.git/commitdiff
precompile assets
authorElan Ruusamäe <glen@delfi.ee>
Sun, 15 May 2016 08:26:27 +0000 (11:26 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 15 May 2016 08:43:30 +0000 (11:43 +0300)
saves 3-5 minutes time on initial startup

gitlab-ce.spec

index 1a6bdf03d9204c3e8cde00885b34c0a887daca56..c9a7d43980da129b949acc8fb4fcf4dbd6f73330 100644 (file)
@@ -17,7 +17,7 @@
 Summary:       A Web interface to create projects and repositories, manage access and do code reviews
 Name:          gitlab-ce
 Version:       8.7.5
-Release:       0.13
+Release:       0.15
 License:       MIT
 Group:         Applications/WWW
 # md5 deliberately omitted until this package is useful
@@ -101,9 +101,18 @@ bundle install %{_smp_mflags} \
        --deployment \
        --without development test aws %{!?with_krb5:kerberos}
 
+bundle exec rake RAILS_ENV=production assets:precompile
+
 # avoid bogus ruby dep
 chmod a-x vendor/bundle/ruby/gems/unicorn-*/bin/unicorn*
 
+# remove secrets, log and cache that assets compile initialized
+rm .gitlab_shell_secret
+rm .secret
+rm config/secrets.yml
+rm log/production.log
+rm -r tmp/cache/*
+
 %if %{with gem_cache}
 install -d "$cachedir"
 cp -aul vendor/bundle/* "$cachedir"
This page took 0.027745 seconds and 4 git commands to generate.