铁轨和Bundler - 安装在 Rails 应用程序内部的 Gems
在新安装 osx rvm、bundler 和 Rails 3 后,运行bundle install 会以某种方式解压我的应用程序中的所有内容。我已完成以下操作:
安装了 rvm
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
将以下内容添加到 bash
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
通过 rvm 安装了 ruby
rvm install 1.9.2
rvm -default 1.9.2
通过 rubygems 安装了 ruby
gem install rails
安装了捆绑程序
gem install bundle
从现有的 Rails 应用程序中安装了我的 gems
bundle install
这将在我的应用程序根目录中产生以下目录结构:
mycoolblog/rails/ruby/1.9.1/bin | bundler | cache | doc | gems | specification
显然我的安装出了问题,但不知道如何修复它。 请在投票结束此问题之前告知我是否需要提供更多详细信息。
After a new install of osx rvm, bundler and rails 3 running bundle install somehow unpacks everything inside my application. I have done the following:
Installed rvm
$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
Added following to bash
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Installed ruby via rvm
rvm install 1.9.2
rvm -default 1.9.2
Installed rails by rubygems
gem install rails
Installed bundler
gem install bundle
From within existing rails application installed my gems
bundle install
This results in the following directory structure within my application root directory:
mycoolblog/rails/ruby/1.9.1/bin | bundler | cache | doc | gems | specification
Clearly I've done something wrong with my installation but not sure how to fix it. Please, let me know if I need include any more details before voting to close this question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有人遇到这个问题,解决方案是:
我不知道这是怎么发生的,所以除了找到的修复之外无法详细说明。
If anyone comes across this, the solution is:
I have no idea how this came about so cannot elaborate other than the found fix.