2009-08-18 84 views
1

这是我第一次使用卡皮斯特拉诺和应用程序已经发布没有它。当我键入帽部署:迁移我收到以下错误一些成功的命令后:卡皮斯特拉诺的失败

 * executing "cd /home/collimarco/foto-fiori.com/releases/20090818111104; rake RAILS_ENV=production db:migrate" 
    servers: ["foto-fiori.com"] 
    [foto-fiori.com] executing command 
** [out :: foto-fiori.com] (in /home/collimarco/foto-fiori.com/releases/20090818111104) 
** [out :: foto-fiori.com] Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. 
    command finished 
failed: "sh -c 'cd /home/collimarco/foto-fiori.com/releases/20090818111104; rake RAILS_ENV=production db:migrate'" on foto-fiori.com

我试图从environment.rb中注释掉RAILS_GEM_VERSION,但都是一样的。

我也是手动输入最后的命令:

$ cd /home/collimarco/foto-fiori.com/releases/20090818111104 
$ rake RAILS_ENV=production db:migrate 
(in /home/collimarco/foto-fiori.com/releases/20090818111104) 
rake aborted! 
No such file or directory - /home/collimarco/foto-fiori.com/releases/20090818111104/config/database.yml 
/home/collimarco/foto-fiori.com/releases/20090818111104/Rakefile:10 
(See full trace by running task with --trace)

任何想法?

回答

1
** [out :: foto-fiori.com] Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. 

你的问题就在那里。你需要安装Rails 2.3.3。

它也看起来像你错过了你的database.yml文件,我假设这只是源代码管理错过了?

+0

请勿将database.yml放入源代码管理中。您应该在您的#{shared_pa​​th}/config中将其复制到您的config目录中:deploy.rb中的update_code钩子将此文件放在源代码管理中存在安全风险。 – nitecoder 2009-08-19 11:10:23

相关问题