From 9bd7038e6859533bb40bec2cd1874398c9077f1a Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 8 May 2014 18:06:05 +0200 Subject: [PATCH] Specify the PATH for `rake assets:precompile` --- config/software/gitlab-rails.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/software/gitlab-rails.rb b/config/software/gitlab-rails.rb index 8edbeeb..e903d91 100644 --- a/config/software/gitlab-rails.rb +++ b/config/software/gitlab-rails.rb @@ -65,7 +65,13 @@ build do # we revert and re-apply the patch (if this is a second or later run). command "git apply #{aato_patch} || (git apply -R #{aato_patch} && git apply #{aato_patch})", :cwd => "#{install_dir}/embedded/service/gem/ruby/2.0.0/gems/acts-as-taggable-on-2.4.1" - rake "assets:precompile", :env => {"RAILS_ENV" => "production"} + + assets_precompile_env = { + "RAILS_ENV" => "production", + "PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}" + } + bundle "exec rake assets:precompile", :env => assets_precompile_env + # Tear down now that the assets:precompile is done. command "rm config/gitlab.yml config/database.yml" -- libgit2 0.21.2