jjzjj

development-bundle

全部标签

ruby-on-rails - bundle exec rake 测试抛出错误

你好,我是铁路新手。我正在关注MichaelHartl的railstutorial.org。我卡在了第4章的list4.5中:当我点击$bundleexecraketest时,它显示的结果与按照教程应该显示的结果不同。注意:我使用的是Ubuntu15.10作为平台。当我点击$bundleexecraketest时的结果/home/shyambhimani/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/minitest-reporters-1.0.5/lib/minitest/minitest_reporter_plugin.rb:8:in

ruby - Supervisord:如何获取 rvm 和 bundle exec 来启动 rails 脚本?

我正在尝试使用supervisord管理一个ruby​​脚本,但是因为我还没有完全理解RVM是如何工作的,所以我无法正确地完成它。通常我会做以下事情:#sourcingofrvmdoneautomaticallyonsshlogincd/var/rails/myappRAILS_ENV="production"bundleexec./script/backgroundrb但是使用下面的配置文件我做不到:[program:owgm]directory=/var/rails/owgmcommand=bundleexec./script/backgroundrbenvironment=RAI

ruby-on-rails - Openshift 上的 Ruby "bundle install"错误

我在Ruby和通过远程工具部署应用程序方面还很陌生。我试图在免费的openshift帐户上部署我的应用程序。我无法运行应用程序。当我运行应用程序时出现此错误:Youhavealreadyactivatedrack1.5.2,butyourGemfilerequiresrack1.6.0.Usingbundleexecmaysolvethis.(Gem::LoadError)所以我尝试运行bundleexec但我遇到了另一个错误:Gemfilesyntaxerror:/var/lib/openshift/xxxxxxxxxxxxxxxxxxxxxxxxxx/app-root/runtim

ruby-on-rails - macOS 10.12 Sierra 上的 bundle 错误

Ignoringbinding_of_caller-0.7.2becauseitsextensionsarenotbuilt.Try:gempristinebinding_of_caller--version0.7.2Ignoringbyebug-9.0.6becauseitsextensionsarenotbuilt.Try:gempristinebyebug--version9.0.6Ignoringcapybara-webkit-1.11.1becauseitsextensionsarenotbuilt.Try:gempristinecapybara-webkit--versio

ruby-on-rails - rbenv : bundle: command not found on production server

我正在尝试部署Rails应用程序,但遇到错误DEBUG[1a70ba92]Command:cd/home/deploy/myapp/releases/20140615090226&&(PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATHRBENV_ROOT=~/.rbenvRBENV_VERSION=2.1.2~/.rbenv/bin/rbenvexecbundleinstall--binstubs/home/deploy/myapp/shared/bin--path/home/deploy/myapp/shared/bundle--withou

ruby-on-rails - Rails 错误 : Unable to access log file. 请确保/home.../log/development.log 存在并且是 chmod 0666

我正在尝试将db2数据库迁移到RubyonRails,但是当我运行railsgscaffold时,我得到了这个:Rails错误:无法访问日志文件。请确保/home/.../log/development.log存在并且是chmod0666。日志级别已提高到WARN,输出定向到STDERR,直到问题得到解决。我检查过,我的development.log不存在!我不确定为什么,因为我在安装过程中遵循了每一步,但我的文件仍然不存在。我怎样才能创建它?我已经尝试卸载并重新安装Rails,但问题仍然存在。 最佳答案 也许只做它要求你做的事?:

ruby-on-rails - 由于 Bundler::GemspecError: 无法读取 gem 导致 bundle 安装失败

我在安装bundle时遇到这些错误:✗bundleinstallFetchinggemmetadatafromhttps://rubygems.org/.........Resolvingdependencies...Bundler::GemspecError:Couldnotreadgemat/Users/liuxin/.rvm/gems/ruby-1.9.3-p547/cache/i18n-0.6.11.gem.Itmaybecorrupted.Anerroroccurredwhileinstallingi18n(0.6.11),andBundlercannotcontinue.M

ruby-on-rails - rails : Detecting user agent works in development but not production?

我正在尝试在我的应用程序中检测黑莓用户代理,这在我的开发版本中运行良好。但是当我在生产环境中重新部署该应用程序时,没有任何反应。application_helper.rbdefblackberry_user_agent?request.env["HTTP_USER_AGENT"]&&request.env["HTTP_USER_AGENT"][/(Blackberry)/]end应用程序.html.erbUsingaBlackberry?Usethemobileoptimizedversion.我已经尝试使用raketmp:cache:clear清除缓存并重新启动mongrel几次。显

ruby-on-rails - bundle 安装错误,意外 ':'

我知道网上有很多问题或类似问题,但它不适合我的情况。我正在安装redmine,当我调用bundleinstall时,出现此错误:[!]Therewasanerrorparsing`Gemfile`:compileerror-syntaxerror,unexpected':',expecting$endgem'tzinfo-data',platforms:[:mingw,:x64_mingw,:mswin,:jruby]^.Bundlercannotcontinue.错误在这一行(以->为前缀的那一行):source'https://rubygems.org'ifGem::Version

ruby - 导轨 3.2.x : how to reload app/classes dir during development?

我有一些Rails代码不适合模型或Controller盒。所以根据thisanswer,我创建了一个app/classes目录。Rails3似乎自动将其添加到Rails中的“加载路径”,我的应用程序正确地找到了我在其中定义的类,而无需使用require语句。但是app/classes中的代码不会在开发模式下重新加载;如果我进行了更改,我需要重新启动服务器才能看到该更改。在Rails3.2.x中使给定目录“可重新加载”的正确方法是什么?这里的一些答案建议这样做:config.autoload_paths+=%W(#{config.root}/app/classes)但我相信这仅具有将ap