Friday, 15 May 2015

ruby on rails - rake assets:precompile issue. parsing error -



ruby on rails - rake assets:precompile issue. parsing error -

i getting issue, while precompile assets in production env.

assetsync: using default configuration built-in initializer rake aborted! caught encoding::compatibilityerror @ '["ok","/*!\n * jquer': incompatible encoding regexp match (ascii-8bit regexp utf-8 string) (in /home/rails_work/bunk1_dev/app/assets/javascripts/active_admin.js) /usr/local/rvm/gems/ruby-1.9.3-p194@bunk1/gems/json_pure-1.7.6/lib/json/pure/parser.rb:242:in `rescue in parse_string' /usr/local/rvm/gems/ruby-1.9.3-p194@bunk1/gems/json_pure-1.7.6/lib/json/pure/parser.rb:213:in `parse_string' /usr/local/rvm/gems/ruby-1.9.3-p194@bunk1/gems/json_pure-1.7.6/lib/json/pure/parser.rb:257:in `parse_value' /usr/local/rvm/gems/ruby-1.9.3-p194@bunk1/gems/json_pure-1.7.6/lib/json/pure/parser.rb:121:in `parse' /usr/local/rvm/gems/ruby-1.9.3-p194@bunk1/gems/json_pure-1.7.6/lib/json/common.rb:155:in `parse'

any help appreciating.

i have resolved issue, issue related json_pure gem precompilation. remove "require 'json/pure'" code , apply "require 'json'". hope reply help others.

thanks

ruby-on-rails deployment

No comments:

Post a Comment