繁体   English   中英

当尝试连接到远程数据库时,Capistrano失败:rvm-shell没有这样的文件或目录

[英]Capistrano fails when trying to connect to remote db saying: rvm-shell no such file or directory

我有一个Capistrano配方,该配方在Rails 3应用程序中使用远程数据库。 这是食谱的一部分:

role :web, "ip1"
role :app, "ip1"
role :db,  "ip2"

set :rvm_type, :system
set :rvm_ruby_string, '1.9.3'

set :deploy_to, "/apps/gits/#{application}"
set :deploy_via, :remote_cache
set :deploy_env, 'production'

而capistrano给我这个错误: usr/local/rvm/bin/rvm-shell: No such file or directory

但是,如果我注释掉数据库服务器(没有rvm),并让rails认为数据库位于Web服务器(确实有rvm)上,则一切正常。

我假设因为:rvm_type设置为system capistrano在系统上寻找它,但是为什么它仍在寻找呢? 有没有办法解决 ?

rvm-capistrano还不支持它,您必须为每个服务器set :default_shell

已经有此功能的门票https://github.com/wayneeseguin/rvm-capistrano/issues/11

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM