I''m experiencing this, can''t seem to figure it out. Any help
would be
appreciated, thanks!
$ unicorn_rails -c current/config/unicorn.rb -E production
current/config/unicorn.rb:2:in `reload'': uninitialized constant
Unicorn::Configurator::YAML (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn/configurator.rb:42:in
`initialize''
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:167:in
`new''
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:167:in
`initialize''
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:28:in
`new''
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:28:in
`run''
from
/usr/local/lib/ruby/gems/1.8/gems/unicorn-0.96.0/bin/unicorn_rails:207
from /usr/local/bin/unicorn_rails:19:in `load''
from /usr/local/bin/unicorn_rails:19
John Wulff <johnwulff at gmail.com> wrote:> I''m experiencing this, can''t seem to figure it out. Any help would be > appreciated, thanks! > > $ unicorn_rails -c current/config/unicorn.rb -E production > current/config/unicorn.rb:2:in `reload'': uninitialized constant > Unicorn::Configurator::YAML (NameError)Hi John, Unicorn itself doesn''t use YAML anywhere, so you''re probably just forgetting to load it somewhere in your config file: require ''yaml'' Some servers (Mongrel, Thin) use YAML config files, so they would''ve already required ''yaml'' for you. -- Eric Wong
Thanks for the gentle response Eric. I did indeed forget an include, so emberrasing. On Feb 25, 2010, at 11:45 PM, Eric Wong <normalperson at yhbt.net> wrote:> John Wulff <johnwulff at gmail.com> wrote: >> I''m experiencing this, can''t seem to figure it out. Any help would >> be >> appreciated, thanks! >> >> $ unicorn_rails -c current/config/unicorn.rb -E production >> current/config/unicorn.rb:2:in `reload'': uninitialized constant >> Unicorn::Configurator::YAML (NameError) > > Hi John, > > Unicorn itself doesn''t use YAML anywhere, so you''re probably just > forgetting to load it somewhere in your config file: > > require ''yaml'' > > Some servers (Mongrel, Thin) use YAML config files, so they would''ve > already required ''yaml'' for you. > > -- > Eric Wong