[packages/gitlab-ce] precompile assets
glen
glen at pld-linux.org
Sun May 15 11:09:49 CEST 2016
commit a3c02bfcb2612eb865f081b14d5d558c9bbcc897
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 15 11:26:27 2016 +0300
precompile assets
saves 3-5 minutes time on initial startup
gitlab-ce.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-ce.spec b/gitlab-ce.spec
index 1a6bdf0..c9a7d43 100644
--- a/gitlab-ce.spec
+++ b/gitlab-ce.spec
@@ -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"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/a3c02bfcb2612eb865f081b14d5d558c9bbcc897
More information about the pld-cvs-commit
mailing list