首页 文章

如何在没有捆绑到.bundle文件夹的情况下使用Capistrano进行部署?

提问于
浏览
0

我遇到了这个问题:Rvm and gems, bundle show and gem list

我按照其中一个答案的建议,查看了capistrano RVM文档(https://github.com/rvm/rvm-capistrano#disabling-bundle---deployment-when-using-gemsets

所以我把它添加到我的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.

我没有指定另一条路,我想知道我在这里做错了什么 .

1 回答

  • 0

    我不确定您使用的是哪个版本的 capistrano-bundler ,但最新版本不使用 :bundle_dir . 你想要 :bundle_path ,就像这样:

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

相关问题