Ruby on rails &引用;绑定器:无法加载命令:thin";论赫罗库
我正在使用Ruby 2.2.7和Rails 3.2.21,并尝试在Heroku上部署一个版本为2.5.7的带有gem:Ruby on rails &引用;绑定器:无法加载命令:thin";论赫罗库,ruby-on-rails,ruby,heroku,thin,locomotivecms,Ruby On Rails,Ruby,Heroku,Thin,Locomotivecms,我正在使用Ruby 2.2.7和Rails 3.2.21,并尝试在Heroku上部署一个版本为2.5.7的带有gem:Motor\u cms的应用程序,它部署成功,但我面临以下错误: 2017-08-12T23:33:13.732440+00:00应用程序[web.1]:绑定器:加载命令失败:thin(/app/vendor/bundle/ruby/2.2.0/bin/thin) 2017-08-12T23:33:13.732490+00:00应用程序[web.1]:/app/vendor/bu
Motor\u cms
的应用程序,它部署成功,但我面临以下错误:
2017-08-12T23:33:13.732440+00:00应用程序[web.1]:绑定器:加载命令失败:thin(/app/vendor/bundle/ruby/2.2.0/bin/thin)
2017-08-12T23:33:13.732490+00:00应用程序[web.1]:/app/vendor/bundle/ruby/2.2.0/gems/excon-0.23.0/lib/excon/middleware/expects.rb:6:in'response_call'
因此,它也产生了这样的结果:
Heroku::API::Errors::ErrorWithResponse:预期(200)实际(400个错误请求)
我的GEM文件中有thin
,根据其文档,这是机车车辆所必需的
我也有其他类似的问题,但我仍然无法解决我的问题。我有Ruby版本:2.2.7
,虽然它说:/app/vendor/bundle/Ruby/2.2.0/bin/thin
档案:
source 'https://rubygems.org'
ruby "2.2.7"
gem 'rails', '3.2.21'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'locomotive_cms', '~> 2.5.7', :require => 'locomotive/engine'
gem 'dotenv-rails'
gem 'savon', '~> 2.3.0' # SOAP client for pulling in events
gem 'twitter', '5.8.0'
gem 'twitter-text'
gem 'whenever', require: false
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'compass-rails', '~> 2.0.0'
gem 'sass-rails', '~> 3.2.4'
gem 'coffee-rails', '~> 3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '~> 1.2.4'
end
group :development do
gem 'unicorn'
gem 'pry'
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
# To use on Heorku
gem 'locomotive-heroku', '~> 0.1.0', :require => 'locomotive/heroku'
gem 'thin'
Gemfile.lock:
您可以在这里找到它:添加一个(在应用程序的根目录中放置一个名为Procfile的文件),告诉Heroku使用thin,如下所示:
web: bundle exec thin start -p $PORT
这将允许您在Heroku上精简生产。我假设您的文件配置正确
根据,第二条消息指向一个错误的请求,但很难判断它是如何连接到第一条错误消息的。添加一个(在应用程序的根目录中放置一个名为Procfile的文件),告诉Heroku使用thin,如下所示:
web: bundle exec thin start -p $PORT
这将允许您在Heroku上精简生产。我假设您的文件配置正确
根据,第二条消息指向一个错误请求,但很难说它是如何连接到第一条错误消息的。对于这个坏消息,请提前道歉 我已经查看了您的Gemfile和Gemfile.lock,以及最新的2.5.x机车cms分支。由于您所依赖的Gems版本缺乏维护,您的功能已经结束
机车cms
已重命名为机车车辆
,并升级到版本3+。不再维护机车cmsgem。不仅如此,它也不再和您正在使用的一系列其他依赖项兼容,即excon
Bundler could not find compatible versions for gem "excon":
In Gemfile:
locomotive_cms was resolved to 2.5.8, which depends on
fog (~> 1.12.1) was resolved to 1.12.1, which depends on
excon (~> 0.23.0)
locomotive-heroku was resolved to 0.1.0, which depends on
heroku-api (~> 0.3.23) was resolved to 0.3.23, which depends on
excon (~> 0.44)
您需要阅读位于的升级指南。对于这个坏消息,请提前表示歉意 我已经查看了您的Gemfile和Gemfile.lock,以及最新的2.5.x机车cms分支。由于您所依赖的Gems版本缺乏维护,您的功能已经结束
机车cms
已重命名为机车车辆
,并升级到版本3+。不再维护机车cmsgem。不仅如此,它也不再和您正在使用的一系列其他依赖项兼容,即excon
Bundler could not find compatible versions for gem "excon":
In Gemfile:
locomotive_cms was resolved to 2.5.8, which depends on
fog (~> 1.12.1) was resolved to 1.12.1, which depends on
excon (~> 0.23.0)
locomotive-heroku was resolved to 0.1.0, which depends on
heroku-api (~> 0.3.23) was resolved to 0.3.23, which depends on
excon (~> 0.44)
您将需要阅读位于的升级指南。仅供参考-如果您使用rails 3.x.x和ruby 2.2.x,您将遇到各种问题。使用支持rails 4.x的CMS。文件中还有什么?还有Gemfile.lock中有什么?@AaronBreckenridge我已经用Gemfile更新了我的问题,还有一个指向Gemfile.lock的链接仅供参考-如果你使用rails 3.x.x和ruby 2.2.x,你会遇到各种各样的问题。使用支持rails 4.x的CMS。文件中还有什么?Gemfile.lock中有什么?@AaronBreckenridge我已经用Gemfile更新了我的问题,一个指向Gemfile.lockA Procfile的链接已经存在,内容如下:
web:bundle exec thin start-p$PORT-e$RACK_ENV
您使用的是什么版本的thin?它是1.7.2
。我没有在我的Gemfile中特别提到它。您是否查看了以下用户指南:我在本指南中没有看到think应该添加到Gemfile中的位置(或者您可能正在使用旧版本的机车)。我使用的是机车CMS版本:2.5.7
,如问题中所述,您可以在这里找到它的文档:一个Procfile已经存在,它的内容是:web:bundle exec thin start-p$PORT-e$RACK_ENV
您正在使用哪个版本的thin?它是1.7.2
。我没有在我的Gemfile中特别提到它。您是否查看了以下用户指南:我在本指南中没有看到think应该添加到Gemfile中的位置(或者您可能正在使用旧版本的机车)。我使用的是机车CMS版本:2.5.7
,如问题中所述,以及您可以在此处找到的文档:是,我已经联系了霍尔库团队,这确实是原因<代码>机车cms与Heroku API的最新版本不兼容。是的,我已经联系了Heorku团队,这确实是原因<代码>机车cms与Heroku API的最新版本不兼容。