WHITECOLOR
WHITECOLOR

Reputation: 26202

Heroku: Could not find a JavaScript runtime

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

Answers (3)

Jagat Singh
Jagat Singh

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

leonardoborges
leonardoborges

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

John Beynon
John Beynon

Reputation: 37507

You need to be using the heroku cedar stack and not bamboo.

Upvotes: 2

Related Questions