草庐IT

pydevd_bundle

全部标签

ruby-on-rails - bundle 正在我的项目中安装一个 ruby​​ 目录

我昨天试图通过更新ruby​​gems来修复一些发生的垃圾(令人沮丧)。为了修复spork,我输入了“bundleinstallspork”,然后才意识到我实际上并没有输入“geminstallspork”,它在我的项目文件夹中的spork目录中安装了所有内容。我删除了它,并尝试了“bundleinstall”。这似乎工作。但是我只是去提交并注意到我的项目中现在有一个ruby​​目录。我删除了它,但现在不知道如何让bundle返回安装在我的项目目录之外的某个地方。有谁知道什么命令可以完成此操作? 最佳答案 如果您不小心调用了bund

ruby-on-rails - bundle 有什么意义?

我了解Rail的bundlepackage的作用以及如何使用它,但是对于为什么它是一个有用的命令我还是一头雾水。它有什么用处? 最佳答案 bundlepackage会将您的应用程序所需的所有gem复制到vendor/cache文件夹中。这还包括gem所需的依赖项。这很有帮助,因为在部署时您可以运行bundleinstall--local避免依赖gems存储库(rubygems.org)并从缓存文件夹安装所有gems因为每个gem可能有不同的依赖关系,这取决于它安装的平台,建议使用bundlepackage仅当您的开发和部署环境相似时

ruby-on-rails - gem 不可用,即使在添加到 gemfile 并运行 bundle install 之后也是如此

我正在做一个简单的任务,我需要解析一个XMLHttp响应,所有的http工作正常,我有我的xml字符串....我正在尝试使用xml-simplegem。我已经geminstallxml-simple我还在gemfile中添加了gem'xml-simple'成功运行bundleinstall但是当我尝试在我的rake任务中require'xml-simple'时,它失败了说nosuchfiletoload--xml-simple...我错过了什么??? 最佳答案 Bundler尝试使用gem名称作为require路径(即require

ruby-on-rails - 运行时出现段错误 'bundle exec rake'

运行后:$bundleexecrake我收到这个错误:/Users/user/Documents/Code/spree_gem/vendor/bundle/gems/json-1.8.2/lib/json/ext/parser.bundle:[BUG]Segmentationfaultat0x00000000000418ruby2.1.5p273(2014-11-13revision48405)[x86_64darwin14.0]伴随着这个:/Users/user/Documents/Code/spree_gem/vendor/bundle/bin/rake:23:in`'/Users

ruby-on-rails - -苏: bundle: command not found when starting unicorn

我正在按照DigitalOcean的教程(仅供引用,这是教程,link1,link2),使用unicorn和nginx安装生产就绪的Rails应用程序,当我开始安装时unicorn。当我尝试将其输入控制台时:sudoserviceunicorn_appnamestart我收到这个错误:Startingappname-su:bundle:commandnotfound所有用户都可以捆绑。这条消息对我来说毫无意义。有什么想法吗? 最佳答案 我也遵循了相同的指南并遇到了同样的问题。init.d/unicorn_appname中的启动脚本被

ruby - bundle exec rake test 什么都不做

我正试图让我的头脑“弄脏”TDD,但出于某种原因,当我在命令行上运行bundleexecraketest时,没有任何反应。这是我的RakeFile:require'rake/testtask'Rake::TestTask.newdo|test|test.libs:test这是我的测试文件:require'test/unit'classTestMygem 最佳答案 我忘了将这一行添加到我的RakeFiletest.test_files=FileList['tests/test_*.rb']总而言之,这是我的最终RakeFilerequ

ruby-on-rails - 运行 "bundle"时的 Bundler 警告 - Ruby on Rails

我使用rbenv安装了ruby2.4.2p198(2017-09-14修订版59899)[x86_64-darwin16]版本,并使用以下版本安装了RailsRails5.1.4通过railsnewmy-app创建一个新应用后当我尝试运行bundle时出现以下错误Thedependencytzinfo-data(>=0)willbeunusedbyanyoftheplatformsBundlerisinstallingfor.Bundlerisinstallingforrubybutthedependencyisonlyforx86-mingw32,x86-mswin32,x64-mi

ruby - 在 Rails 3 中创建新应用时运行 bundle install

我是RubyOnRails的新手。我在ubuntu11.04上安装了rails3.1.2。每次我跑railsnew最后它确实runbundleinstall.这需要相当长的时间才能完成。每次创建应用程序时都需要运行bundleinstall吗?如果不需要,有什么方法可以阻止它在每次创建新的Rails应用程序时运行,以便RailsNew快速完成? 最佳答案 尝试使用railsnew--skip-bundle. 关于ruby-在Rails3中创建新应用时运行bundleinstall,我们在

ruby - `bundle install` 失败(因为 git 协议(protocol))

有了这个简单的Gemfile,source'https://rubygems.org'gem'activerecord',"~>2.2.3"gem'activerecord-sqlserver-adapter',github:'arthrex/activerecord-sqlserver-adapter',:branch=>'2-3-stable'bundleinstall失败并显示Fetchinggit://github.com/arthrex/activerecord-sqlserver-adapter.gitfatal:unabletoconnecttogithub.com:gi

ruby - bundle 安装从错误的目录运行

我正在为一些内部项目构建一个简单的基于thor的生成器,但似乎无法从正确的目录运行bundleinstall。当我运行新的[APP_NAME]函数时,它应该创建目录和文件,然后运行​​bundleinstall来安装应用程序所需的gem。p>生成器函数的来源:defcreateputs"Creatingapplication#{name}"directory'application',"#{name}"Dir.chdir("#{Dir.pwd}/#{name}")doputs`bundleinstall`endend运行调用此创建方法的命令的控制台输出:$bundleexecbin/m