gpt4 book ai didi

ruby-on-rails - Rvm 和 gems,bundle show 和 gem 列表

转载 作者:数据小太阳 更新时间:2023-10-29 07:17:01 27 4
gpt4 key购买 nike

我将 RVM 与 ruby​​ on rails 结合使用,当我执行 bundle install 时,它显示的 gem 比我执行 gem list 时多得多?与 rvm 及其使用的路径有关吗?

捆绑安装

mds@db1:~/staging$ bundle
Using rake (0.9.6)
Using Ascii85 (1.0.1)
Using Platform (0.4.0)
Using open4 (1.3.0)
Using POpen4 (0.1.4)
Using activesupport (2.3.17)
Using rack (1.1.6)
Using actionpack (2.3.17)
Using actionmailer (2.3.17)
Using activerecord (2.3.17)
Using activeresource (2.3.17)
Using acts_as_audited (1.1.1)
Using addressable (2.2.8)
Using builder (3.0.0)
Using gyoku (1.0.0)
Using nokogiri (1.5.6)
Using akami (1.2.0)
Using ar-extensions (0.9.5)
Using cgi_multipart_eof_fix (2.5.0)
Using chunky_png (1.2.5)
Using cocaine (0.2.1)
Using coderay (1.0.9)
Using fssm (0.2.9)
Using sass (3.1.18)
Using compass (0.12.1)
Using daemons (1.1.9)
Using warden (0.10.7)
Using devise (1.0.6)
Using fastimage (1.2.13)
Using html_compressor (0.0.3)
Using rubyzip (0.9.8)
more gems......
Your bundle is complete!
It was installed into ./vendor/bundle

gem 列表

mds@db1:~/staging$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.17)
actionpack (2.3.17)
activerecord (2.3.17)
activeresource (2.3.17)
activesupport (2.3.17)
bundler (1.3.5)
bundler-unload (1.0.1)
daemon_controller (1.1.4)
fastthread (1.0.7)
passenger (3.0.19)
rack (1.5.2, 1.1.6)
rails (2.3.17)
rake (10.1.0)
rubygems-bundler (1.2.2)
rvm (1.11.3.8)

最佳答案

当您使用 bundle install --deploymentbundle install --path=... 时会发生这种情况,它会生成 .bundle/config 用这样的东西:

---
BUNDLE_FROZEN: '1'
BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: '1'

它可以由你们中的一位同事或 bundler/capistrano 集成来完成:

  1. 如果是您的同事,则删除并忽略它:

    rm -rf .bundle
    echo '.bundle' >> .gitignore
  2. 用于 Capistrano rvm-capistrano描述了如何禁用它 => https://github.com/wayneeseguin/rvm-capistrano#disabling-bundle---deployment-when-using-gemsets

关于ruby-on-rails - Rvm 和 gems,bundle show 和 gem 列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17810552/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com