Deploying Rails 3 on Dreamhost with Capistrano

只谈情不闲聊 提交于 2019-12-22 10:36:26

问题


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?


回答1:


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

require 'bundler/capistrano'


来源:https://stackoverflow.com/questions/4672889/deploying-rails-3-on-dreamhost-with-capistrano

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!