【问题标题】:Should I add vendor/bundle to .gitignore, so it will not be added to my repository after deployment?我是否应该将供应商/捆绑包添加到 .gitignore,以便在部署后不会将其添加到我的存储库中?
【发布时间】:2010-12-27 09:37:58
【问题描述】:

我知道bundle install --deployment 应该只在生产服务器上运行。

我应该在 .gitignore 中添加“供应商/捆绑包”吗?

【问题讨论】:

    标签: ruby-on-rails git bundler


    【解决方案1】:

    您不需要这样做,因为它应该在部署时被符号链接到共享目录。更多细节在这篇博文的部署小节http://yehudakatz.com/2010/07/26/whats-new-in-bundler-1-0-0-rc-1/

    【讨论】:

      猜你喜欢
      • 2017-01-04
      • 2018-11-24
      • 2020-12-10
      • 1970-01-01
      • 2020-11-04
      • 1970-01-01
      • 2013-04-14
      • 2016-06-24
      相关资源
      最近更新 更多