I want to run a heroku server and after installing ruby and ruby gems, wanted to run ' bundle install'. I received a compile error when trying to install therubyracer and realised it is because therubyracer does not run on windows from here. It is suggested on other several questions to change the gem file to not include therubyracer on windows, and instead use execjs. I downloaded execjs, but how do I change the gem file?
this is my current gem file:
source 'https://rubygems.org'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'heroku'
group :development do
gem 'less'
end
these are suggestions made here and here
gem 'therubyracer-heroku', '~> 0.8.1.pre3', :platform => :ruby
gem 'therubyracer', :platform => :ruby
I tried inserting either of these lines, which did not work (running 'bundle install' still attempted to install therubyracer and failed.) So I suspect I must add the :platform => :ruby else where.
Can anyone point me to how to modify my gem file to fix this problem?
Thank you!
ps: using Ruby 1.9.3.