javascript runtime in rails 3.1.0 and ruby 1.9.2. cant deal with with heroku. Did everything, but still does not working - Stack

Please help, it's my studying project. It work locally but not online:Hello, it is said that i do

Please help, it's my studying project. It work locally but not online:
Hello, it is said that i dont need special gems like "therubyracer" in rails 3.1.0 but it writes in "heroku logs":

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

i was trying to install "therubyracer" but i have error with installing it

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.....

also i made pile:true and prepiled

Here is my app in a github:
take a look plz if you have a time, i wasted 2 days for this problem(
so i dont know what to do(,
Thanks in advance

Please help, it's my studying project. It work locally but not online:
Hello, it is said that i dont need special gems like "therubyracer" in rails 3.1.0 but it writes in "heroku logs":

    2011-10-04T23:15:30+00:00 app[web.1]: ActionView::Template::Error (Could not fin
d a JavaScript runtime. See https://github./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
)):....

i was trying to install "therubyracer" but i have error with installing it

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.....

also i made pile:true and prepiled

Here is my app in a github: https://github./EnotPoloskun/lagp
take a look plz if you have a time, i wasted 2 days for this problem(
so i dont know what to do(,
Thanks in advance

Share Improve this question edited Oct 5, 2011 at 8:12 Pavel asked Oct 5, 2011 at 8:05 PavelPavel 4,4506 gold badges34 silver badges41 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 8

I'm using Rails 3.1 on Heroku with the assets pipeline, in addition to the assets group in my gemfile I have;

group :production do
 gem 'therubyracer-heroku'
end

which seems to be what you're missing,

group :production do

gem 'therubyracer-heroku'

end

Then bundle update at local machine before uploading source code to heroku.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745338763a4623230.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信