最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论