[V. 6.6] couldn't find file 'underscore'
Created by: maltefiala
Version
Issue observed in Gitlab 6-6-stable (6.6.0).
Summary
While Upgrading to 6.6.0 assets:precompile failed with
couldn't find file 'underscore'
Steps to reproduce
Follow upgrade guide to "# Clean up assets and cache"
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
Error Msg:
couldn't find file 'underscore' (in /home/git/gitlab/app/assets/javascripts/application.js:31)
Expected behavior
/home/git/gitlab/app/assets/javascripts/application.js (std. directory) line 31 includes 'underscore':
//= require underscore This file should be found, but it is nowhere
Observed behavior
sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
and
sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
exit without error
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
exits with error message:
couldn't find file 'underscore' (in /home/git/gitlab/app/assets/javascripts/application.js:31)