]> git.pld-linux.org Git - packages/gitlab-ce.git/commitdiff
use local secret_file for compiling assets
authorElan Ruusamäe <glen@delfi.ee>
Sun, 15 May 2016 20:45:28 +0000 (23:45 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 15 May 2016 20:46:14 +0000 (23:46 +0300)
the patched config.yml would use path from /etc which is unavailable at
build time

gitlab-ce.spec

index 504d2917d54cdc187936e1641515d19dcb54b15a..da1231bf6abc5dc578e5c1e2ad448b1db298fb24 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.21
+Release:       0.22
 License:       MIT
 Group:         Applications/WWW
 # md5 deliberately omitted until this package is useful
@@ -99,7 +99,10 @@ bundle install %{_smp_mflags} \
        --deployment \
        --without development test aws %{!?with_krb5:kerberos}
 
+cp -p config/gitlab.yml{,.production}
+sed -i -e '/secret_file:/d' config/gitlab.yml
 bundle exec rake RAILS_ENV=production assets:clean assets:precompile USE_DB=false
+mv -f config/gitlab.yml{.production,}
 
 # avoid bogus ruby dep
 chmod a-x vendor/bundle/ruby/gems/unicorn-*/bin/unicorn*
This page took 0.084525 seconds and 4 git commands to generate.