Rails 실행시 “uglifier” gem 때문에 에러가 나는경우가 있다.
새로운 환경에서 돌릴려니 또 뭔가가 안된다..
로그를 확인
Bundle complete! 16 Gemfile dependencies, 76 gems now installed. Gems in the groups development and production were not installed. Bundled gems are installed into ./vendor/bundle. + bundle exec rake db:migrate RAILS_ENV=test rake aborted! Bundler::GemRequireError: There was an error while trying to load the gem 'uglifier'. /var/lib/jenkins/jobs/example/workspace/config/application.rb:7:in `<top (required)>' /var/lib/jenkins/jobs/example/workspace/Rakefile:4:in `require'
Gemfile 을 보니
# Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0'
이런게 있었다.
여러 자바스크립트 파일을 하나로 압축시켜주는 gem 같다.
nodejs 깔아주면 된다.
sudo yum install nodejs
이건 금방해결했음
No Comments