therubyracer gem is used to evaluate JavaScript from within Ruby (it embeds a JavaScript interpreter in Ruby).
This stone is necessary if you are running Ubuntu, as there is no Javascript runtime in ubuntu.
But this is not the case with Heroku .
So, just keep the line for therubyracer gem in the Gemfile in the development group, as shown below:
group :development do gem 'therubyracer', '0.10.2', :platforms => :ruby end
source share