Reputation: 26202
In heroku app log I get:
2011-11-25T15:14:08+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/execjs-1.2.9/lib/execjs
etect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a li
(ExecJS::RuntimeUnavailable)
Are execjs and therubyracer gems needed to run rails 3.1 app on heroku?
Upvotes: 2
Views: 1609
Reputation: 11
Install JavaScript runtime environment in your systems by using following steps, as this is best way to solve the issue:
wget http://nodejs.org/dist/node-v0.1.31.tar.gz tar xfv node-v0.1.31.tar.gz cd node-v0.1.31 ./configure make make install
Upvotes: 1
Reputation: 5629
Given the error message I'm guessing this is a Rails 3.1 on the old stack, called Bamboo.
Heroku recommends the cedar stack for Rails 3.1 and they have a tutorial here on how to get that going.
Upvotes: 3