rails 3.1.0和ruby 1.9.2中的javascript运行时.无法处理heroku.做了一切,但仍然无法正常工作

Pav*_*vel 5 javascript runtime-error heroku ruby-1.9.2 ruby-on-rails-3.1

请帮忙,这是我的学习项目.它在本地但不在线工作:
你好,据说我不需要像rails 3.1.0中的"therubyracer"这样的特殊宝石,但它写在"heroku日志"中:

    2011-10-04T23:15:30+00:00 app[web.1]: ActionView::Template::Error (Could not fin
d a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of
available runtimes.
2011-10-04T23:15:30+00:00 app[web.1]:   (in /app/app/assets/javascripts/rails.js
)):....
Run Code Online (Sandbox Code Playgroud)

我试图安装"therubyracer",但我安装错误

C:\proj\lagp>gem install therubyracer
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
checking for main() in -lpthread... no
creating Makefile

make
C:/RailsInstaller/Ruby1.9.2/bin/ruby -e "puts 'EXPORTS', 'Init_v8'"  > v8-i386-m
ingw32.def
g++ -I. -IC:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.2/li
b/libv8/v8/include -IC:/RailsInstaller/Ruby1.9.2/include/ruby-1.9.1/i386-mingw32.....
Run Code Online (Sandbox Code Playgroud)

我也编译:true和precompiled

这是我的应用程序在github:https ://github.com/EnotPoloskun/lagp
看看PLZ,如果你有时间,我浪费了2天这个问题(
所以我不知道该怎么做(,
提前谢谢)

Joh*_*non 8

我在Heroku上使用Rails 3.1和资产管道,以及我的gemfile中的资产组;

group :production do
 gem 'therubyracer-heroku'
end
Run Code Online (Sandbox Code Playgroud)

这似乎是你所缺少的,