我正在尝试使用 capistrano 和 unicorn 进行部署。不幸的是,我得到了
We're sorry, but something went wrong.
信息。在我的开发环境中一切正常。production.log 没有显示任何错误。以下是 unicorn.log——Devise 似乎有问题?任何帮助将非常感激!
/var/www/shared/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
/var/www/shared/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
E, [2013-04-05T15:45:46.051101 #18179] ERROR -- : uninitialized constant Devise (NameError)
/var/www/releases/20130405154134/config/initializers/devise.rb:3:in `<top (required)>'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/engine.rb:587:in `each'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/engine.rb:587:in `block in <class:Engine>'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
/var/www/shared/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/releases/20130405154134/config/environment.rb:5:in `<top (required)>'
config.ru:4:in `require'
config.ru:4:in `block in <main>'
/var/www/shared/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
/var/www/shared/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn.rb:44:in `eval'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn.rb:44:in `block in builder'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:722:in `call'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:722:in `build_app!'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:595:in `init_worker_process'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:615:in `worker_loop'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:511:in `maintain_worker_count'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:277:in `join'
/var/www/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.2/bin/unicorn:126:in `<top (required)>'
/var/www/shared/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
/var/www/shared/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
E, [2013-04-05T15:50:20.918137 #5363] ERROR -- : reaped #<Process::Status: pid 18942 exit 1> worker=0
I, [2013-04-05T15:50:20.918399 #5363] INFO -- : worker=0 spawning...