Commit 9bd7038e6859533bb40bec2cd1874398c9077f1a
1 parent
346d02d2
Exists in
master
and in
11 other branches
Specify the PATH for `rake assets:precompile`
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
config/software/gitlab-rails.rb
| ... | ... | @@ -65,7 +65,13 @@ build do |
| 65 | 65 | # we revert and re-apply the patch (if this is a second or later run). |
| 66 | 66 | command "git apply #{aato_patch} || (git apply -R #{aato_patch} && git apply #{aato_patch})", |
| 67 | 67 | :cwd => "#{install_dir}/embedded/service/gem/ruby/2.0.0/gems/acts-as-taggable-on-2.4.1" |
| 68 | - rake "assets:precompile", :env => {"RAILS_ENV" => "production"} | |
| 68 | + | |
| 69 | + assets_precompile_env = { | |
| 70 | + "RAILS_ENV" => "production", | |
| 71 | + "PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}" | |
| 72 | + } | |
| 73 | + bundle "exec rake assets:precompile", :env => assets_precompile_env | |
| 74 | + | |
| 69 | 75 | # Tear down now that the assets:precompile is done. |
| 70 | 76 | command "rm config/gitlab.yml config/database.yml" |
| 71 | 77 | ... | ... |