【发布时间】:2009-08-18 11:28:23
【问题描述】:
这是我第一次使用 Capistrano,而且在没有它的情况下应用程序已经发布。当我键入 cap deploy:migrations 时,在一些成功的命令后出现以下错误:
* 执行“cd /home/collimarco/foto-fiori.com/releases/20090818111104; rake RAILS_ENV=production db:migrate”
服务器:[“foto-fiori.com”]
[foto-fiori.com] 执行命令
** [out :: foto-fiori.com](在 /home/collimarco/foto-fiori.com/releases/20090818111104 中)
** [out :: foto-fiori.com] 缺少 Rails 2.3.3 gem。请 `gem install -v=2.3.3 rails`,更新 config/environment.rb 中的 RAILS_GEM_VERSION 设置以获取已安装的 Rails 版本,或注释掉 RAILS_GEM_VERSION 以使用安装的最新版本。
命令完成
失败:foto-fiori.com 上的“sh -c 'cd /home/collimarco/foto-fiori.com/releases/20090818111104; rake RAILS_ENV=production db:migrate'”
我试图从 environment.rb 中注释掉 RAILS_GEM_VERSION,但还是一样。
我还手动输入了最后一个命令:
$ cd /home/collimarco/foto-fiori.com/releases/20090818111104 $ rake RAILS_ENV=生产数据库:迁移 (在/home/collimarco/foto-fiori.com/releases/20090818111104) 耙中止! 没有这样的文件或目录 - /home/collimarco/foto-fiori.com/releases/20090818111104/config/database.yml /home/collimarco/foto-fiori.com/releases/20090818111104/Rakefile:10 (通过使用 --trace 运行任务查看完整跟踪)
有什么想法吗?
【问题讨论】:
标签: ruby-on-rails deployment capistrano