capistrano 部署 rails 4,执行 assets:precompile 遇到错误。按照官网的建议,我把 capistrano 升级到 2.15.5,问题依旧没解决啊,怎么办?
折腾了 1 天了,求指点。
servers: ["192.155.83.174"]
[192.155.83.174] executing command
** [out :: 192.155.83.174] rake aborted!
** [out :: 192.155.83.174] uninitialized constant ActionDispatch::Session::EncryptedCookieStore
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application/configuration.rb:144:in `const_get'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application/configuration.rb:144:in `session_store'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:346:in `block in default_middleware_stack'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:308:in `tap'
** [out :: 192.155.83.174]
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:308:in `default_middleware_stack'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:494:in `app'
** [out :: 192.155.83.174]
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application/finisher.rb:34:in `block in <module:Finisher>'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
** [out :: 192.155.83.174]
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/releases/20130823050332/config/environment.rb:5:in `<top (required)>'
** [out :: 192.155.83.174]
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
** [out :: 192.155.83.174] /home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:249:in `block in run_tasks_blocks'
** [out :: 192.155.83.174] /
** [out :: 192.155.83.174] home/deployer/apps/chalkboard/shared/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
** [out :: 192.155.83.174] Tasks: TOP => environment
** [out :: 192.155.83.174] (See full trace by running task with --trace)
command finished in 5548ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/deployer/apps/chalkboard/releases/20130823050332; true"
servers: ["192.155.83.174"]
[192.155.83.174] executing command
command finished in 1549ms
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-2.0.0-p247' -c 'cd -- /home/deployer/apps/chalkboard/releases/20130823050332 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile'" on 192.155.83.174