Question
Unicorn not starting
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×Hi
I’m having the same problem running my app from a init.d script but wrong ruby version is loaded!
=* ruby-1.9.3-p545 [ x86_64 ]
I, [2016-10-07T11:17:21.290766 #4917] INFO -- : Refreshing Gem list
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- personnummer (LoadError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/payway/releases/20161007073202/lib/lib.rb:4:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from config.ru:4:in `block in <main>'
from /usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in `instance_eval'
from /usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /usr/lib/ruby/vendor_ruby/unicorn.rb:48:in `eval'
from /usr/lib/ruby/vendor_ruby/unicorn.rb:48:in `block in builder'
from /usr/lib/ruby/vendor_ruby/unicorn/http_server.rb:764:in `call'
from /usr/lib/ruby/vendor_ruby/unicorn/http_server.rb:764:in `build_app!'
from /usr/lib/ruby/vendor_ruby/unicorn/http_server.rb:137:in `start'
from /usr/bin/unicorn:126:in `<main>'
I have no idea of how to change this via the PATH. Anyone able to describe it for me?