红宝石 – Bundler:如何使用无轨?
发布时间:2020-12-16 20:33:43 所属栏目:百科 来源:网络整理
导读:我有一个使用黄瓜外的项目.如何使用我的gemfile中指定的版本加载宝石? 解决方法 挖掘 the Bundler website: 创建Gemfile(运行bundle init创建骨架Gemfile) 捆绑安装 在您的应用程序中: # Only needed for ruby 1.8.xrequire 'rubygems'# The part that ac
我有一个使用黄瓜外的项目.如何使用我的gemfile中指定的版本加载宝石?
解决方法
挖掘
the Bundler website:
>创建Gemfile(运行bundle init创建骨架Gemfile) # Only needed for ruby 1.8.x require 'rubygems' # The part that activates bundler in your app require 'bundler/setup' # require your gems as usual require 'some_gem' # ...or require all the gems in one statement Bundler.require 值得一看: Bundler.io – Using Bundler in Your Appplication Are bundle exec and require ‘bundler/setup’ equivalent? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |