Answer the question
In order to leave comments, you need to log in
WEBrick (Rails Server) does not start. What's the matter?
When starting the Rails server, the following happens and the server does not start:
[email protected]:~/workspace/ruby/blog$ rails s
/home/matt/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in ` rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
from /home/matt/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require '
from /home/matt/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /home/matt/.rvm/gems /ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/ bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime .rb:61:
from /home/matt/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/matt/workspace/ruby/blog/config /application.rb:7:in `'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:78:in `require '
from /home/matt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /home/matt/ .rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/matt/.rvm/gems/ruby-2.2. 1/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1 /lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `'
from /home/matt/workspace/ruby/blog/ bin/rails:9:in `require'
from /home/matt/workspace/ruby/blog/bin/rails:9:in `'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/ spring-1.6.4/lib/spring/client/rails.rb:28:in `load'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/spring-1.6.4/lib/spring /client/rails.rb:28:in `call'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/spring-1.6.4/lib/spring/client/command.rb:7: in `call'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/spring-1.6.4/lib/spring/client.rb:28:in `run'
from /home/matt/. rvm/gems/ruby-2.2.1/gems/spring-1.6.4/bin/spring:49:in `'
from /home/matt/.rvm/gems/ruby-2.2.1/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load'
from /home/matt/.rvm/gems/ ruby-2.2.1/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `'
from /home/matt/workspace/ruby/blog/bin/spring:13:in `require'
from /home/matt/workspace/ruby/blog/bin/spring:13:in `'
from bin/rails:3:in `load'
from bin/rails:3:in `'
Answer the question
In order to leave comments, you need to log in
Found a solution. To be honest, I don’t know what it has to do with it, but if it works, then it’s good. In general, you just had to install nodejs.
I hope that someone will be useful.
I had a similar error on prod. It got out when trying to compile an on-the-fly asset and when there was no 'therubyracer' gem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question