在我的项目中运行Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2命令时,我使用rbenv并得到错误bundle install。奇怪的是,我实际上已经安装了2.2.2版本(正如我的Gemfile所指定的),而不是2.0.0版本。(见下图)。我尝试了这个线程中提供的解决方案:,但是没有效果。更新:
<
我在生产服务器上的包安装有问题。我在DigitalOcean运行Rails和Ubuntu14.02有一个新的液滴。如果我作为root运行:我收到以下消息,我的应用程序中断,开始从Nginx获得"Bad Gateway“错误:
Don't run Bundler as root.Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application如果我以
我已经完成了帽部署:安装和帽部署:检查,一切似乎都很好。-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:315:in `to_specs': Could not find 'bundler' (>= 0) among 11 total gem(s) (Gem::LoadError)
** [out :: 192.168.8
从github克隆rails应用程序,使用相同版本的rails (5.0.1)在原始开发人员的机器上工作。Undefined local variable or method `git_source' for Gemfilegit_source(:github) do |repo_name| "https: