使用Capistrano在Dreamhost上部署Rails 3 [英] Deploying Rails 3 on Dreamhost with Capistrano

查看:142
本文介绍了使用Capistrano在Dreamhost上部署Rails 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



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



我遵循Dreamhost的Capistrano设置说明(http://wiki.dreamhost.com/Capistrano)



当我运行cap deploy:migrations我收到这个错误:

  [out :: xxx.com]找不到i18n-0.5。 0任何来源
** [out :: xxx.com]尝试运行`bundle install`

我正在考虑在部署时,捆绑安装应该自动运行?
不确定i18n来自哪里,因为我没有添加任何地方。



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

解决方案

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

  require'bundler / capistrano'


I'm trying to deploy a Rails app using Capistrano (it's my first time using Capistrano).

I have a Dreamhost Private Server which is using Ruby 1.8.7 and Rails 3.0.3 (according to http://rails.dreamhosters.com/)

I've followed Dreamhost's Capistrano setup instructions (http://wiki.dreamhost.com/Capistrano)

When I run "cap deploy:migrations" I get this error:

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

Am I right in thinking that when deploying, bundle install should run automatically? Not exactly sure where i18n is coming from either as I haven't added it anywhere.

Has anyone experienced this before or have any experience deploying Rails 3 to Dreamhost?

解决方案

Have you required the bundler cap tasks in your deploy.rb?

require 'bundler/capistrano'

这篇关于使用Capistrano在Dreamhost上部署Rails 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆