我正在尝试通过 capistrano 将 rails 应用程序部署到 rackspace 服务器。我已经将许多 Rails 应用程序部署到 Rackspace 和 Linode 服务器,从未遇到过这样奇怪的问题。capistrano 没有部署应用程序,下面是日志:
executing `deploy:assets:precompile'
* executing "cd /home/deployer/apps/latty39/releases/20121023165957 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
servers: ["50.56.183.16"]
[50.56.183.16] executing command
** [out :: 50.56.183.16] rake aborted!
** [out :: 50.56.183.16] cannot load such file -- Date
** [out :: 50.56.183.16]
** [out :: 50.56.183.16] (See full trace by running task with --trace)
command finished in 7454ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/deployer/apps/latty39/releases/20121023165957; true"
servers: ["50.56.183.16"]
[50.56.183.16] executing command
command finished in 2001ms
failed: "sh -c 'cd /home/deployer/apps/latty39/releases/20121023165957 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on 50.56.183.16
我不知道为什么这会失败。我在这件事上几乎花了 3 个小时,到目前为止还没有成功。有搜索stackoverflow和其他资源但没有帮助。
任何解决问题的帮助将不胜感激
谢谢