I am trying to instal therubyracer/ therubyracer-heroku to my app, cause it doesn\'t work in heroku server cause I don\'t have javascript runtime enviroment.
When I am tryin
As far as I know, therubyracer(-heroku) simply does not work on Windows. But Windows has its own JavaScript engine, which execjs should be able to locate. So that should work for your development on Windows.
For serving the app on Heroku, you can add the therubyracer-heroku gem as following:
gem 'therubyracer-heroku', '~> 0.8.1.pre3', :platform => :ruby
:platform => :ruby
will use it on C Ruby (MRI) or Rubinius but not Windows.
Also, see Heroku's docs for the Cedar Stack;
If you were previously using
therubyracer
ortherubyracer-heroku
, these gems are no longer required and strongly discouraged as these gems use a very large amount of memory.