使用Capistrano在Dreamhost上部署Rails 3

问题描述 投票:3回答:1

我正在尝试使用Capistrano部署Rails应用程序(这是我第一次使用Capistrano)。

我有一个使用Ruby 1.8.7和Rails 3.0.3的Dreamhost私有服务器(根据http://rails.dreamhosters.com/

我已经按照Dreamhost的Capistrano设置说明(http://wiki.dreamhost.com/Capistrano)

当我运行“cap deploy:migrations”时,我收到此错误:

[out :: xxx.com] Could not find i18n-0.5.0 in any of the sources
** [out :: xxx.com] Try running `bundle install`

我是否认为在部署时,捆绑安装应该自动运行? 不完全确定i18n来自哪里,因为我没有在任何地方添加它。

有没有人经历过这个或者有任何经验将Rails 3部署到Dreamhost?

ruby-on-rails ruby deployment capistrano dreamhost
1个回答
6
投票

您是否在deploy.rb中需要bundler cap任务?

require 'bundler/capistrano'
© www.soinside.com 2019 - 2024. All rights reserved.