now these two lines: gem 'therubyracer' gem 'uglifier' When I remove gem 'uglifier' - nothning changes - server is still hangs on the first request. This is the last strings in log: Started GET "/assets/application.css" for 127.0.0.1 at 2011-05-28 09:36:36 +1000 Compiled app/assets/stylesheets/application.css (19ms) (pid 27815) Compiled app/assets/stylesheets/home.css.scss (45ms) (pid 27815) Compiled app/assets/stylesheets/news.css.scss (1ms) (pid 27815) Compiled app/assets/stylesheets/sections.css.scss (30ms) (pid 27815) Compiled app/assets/stylesheets/application.css (0ms) (pid 27815)
Served asset /application.css - 200 OK (0.101s) (pid 27815) Started GET "/assets/application.js" for 127.0.0.1 at 2011-05-28 09:36:36 +1000 Compiled app/assets/javascripts/application.js (4ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery.js (35ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery-ui.js (1ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery_ujs.js (0ms) (pid 27815) Compiled app/assets/javascripts/home.js (0ms) (pid 27815) Compiled app/assets/javascripts/news.js (0ms) (pid 27815) After news.js there is a file named sections.js.coffee and it's empty. Server always hangs before this file compiling with or without uglifier gem. 2011/5/28 Matthew Smart <[email protected]>: > You need a javascript interpreter like therubyracer installed. Keep that > line, but remove the version. It shouldn't be necessary. Try running your > app with and without the uglifier gem. My guess is a problem with uglifier. > If so, post the error from that. > > On Fri, May 27, 2011 at 9:36 AM, Andrey Voronkov <[email protected]> > wrote: >> >> Oh, I forgot! I think the problem is somewhere around these two lines >> in my Gemfile: >> >> gem 'therubyracer', :require => 'v8' >> gem 'uglifier' >> >> Because without the first line Rails gives me this on start: >> in `<module:ExecJS>': Could not find a JavaScript runtime. See >> https://github.com/sstephenson/execjs for a list of available >> runtimes. (ExecJS::RuntimeUnavailable) >> >> 2011/5/27 Andrey Voronkov <[email protected]>: >> > Environment: >> > rvm >> > ruby 1.9.2-p180 >> > rails 3.1.rc1 >> > >> > Conditions: >> > gem "coffee-script" # in Gemfile >> > at least one file with .js.coffee (even empty inside) in app/assets >> > >> > Result: >> > WEBrick or Unicorn hangs. Only kill -9 <pid> helps. >> > >> > P.S. What additional info should I provide? >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
