Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 如何使用Capistrano部署而不绑定到.bundle文件夹?_Ruby_Rvm_Capistrano - Fatal编程技术网

Ruby 如何使用Capistrano部署而不绑定到.bundle文件夹?

Ruby 如何使用Capistrano部署而不绑定到.bundle文件夹?,ruby,rvm,capistrano,Ruby,Rvm,Capistrano,我有一个确切的问题: 我按照其中一个答案的建议,查看了capistrano RVM文档() 因此,我在staging.rb文件中添加了以下内容: set :bundle_dir, '' set :bundle_flags, '--system --quiet' 在部署[cap staging deploy]时,我遇到以下错误: You have specified both a path to install your gems to, as well as --system. Please

我有一个确切的问题:

我按照其中一个答案的建议,查看了capistrano RVM文档()

因此,我在staging.rb文件中添加了以下内容:

set :bundle_dir, ''
set :bundle_flags, '--system --quiet'
在部署[cap staging deploy]时,我遇到以下错误:

You have specified both a path to install your gems to,
as well as --system. Please choose.

我没有指定其他路径,我想知道我在这里做错了什么。

我不确定您使用的是哪个版本的
capistrano bundler
,但最新版本没有使用
:bundle\u dir
。您需要的是
:bundle\u path
,如下所示:

set :bundle_path, nil
set :bundle_flags, '--system --quiet'

检查.bundle是否存在于本地计算机和服务器上。它仅在服务器上创建,不在我的本地文件中。