harrystech / prelaunchr

A small and simple Rails 4 project that is ready to be used as a prelaunch site. It includes all the necessary requirements like prize groups, open/closed states, and simple social sharing.
MIT License
888 stars 532 forks source link

Fix issue with execjs #50

Open rancavil opened 8 years ago

rancavil commented 8 years ago

Fixed the problem with execjs adding execjs in Gemfile.

billybonks commented 8 years ago

what was the problem ?

rancavil commented 8 years ago

The problem was: When I executed

 $ bundle exec rake db:create

I get the next error ..... ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. ..... I added

 gem 'execjs'
 gem 'therubyracer', :platforms => :ruby

In the Gemfile and works for me....

madaarya commented 7 years ago

i think only include therubyracer gem is enough. No need execjs