2017-08-12 7 views
0

Ruby 2.2.7とRails 3.2.21を使用していて、宝くじとのバージョンの宝石:locomotive_cmsを展開しようとしています。成功したが、私は次のエラー直面しています:"bundler:Herokuのロードに失敗しました:thin"

2017-08-12T23:33:13.732440+00:00 app[web.1]: bundler: failed to load command: thin (/app/vendor/bundle/ruby/2.2.0/bin/thin) 2017-08-12T23:33:13.732490+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/excon-0.23.0/lib/excon/middlewares/expects.rb:6:in `response_call'

そして、それとは、それはあまりにも、これを生成します。

Heroku::API::Errors::ErrorWithResponse: Expected(200) <=> Actual(400 Bad Request)

私はそのマニュアルに従ってlocomotivecmsのために必要である私のGemfileでthinを持っています。

他の同様の質問もありましたが、私はまだ問題を解決できません。それは言っている間2.2.7、および:/app/vendor/bundle/ruby/2.2.0/bin/thin

Gemfile:

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:

あなたがここでそれを見つけることができます:https://gist.github.com/Arslan-Ali-Butt/640c1ec1750d17c9803e12a492f35c4e

+0

ちょうどfyi - あなたは、レール3.x.xとルビー2.2.xを使用している場合、あなたはあらゆる種類の問題に遭遇するでしょう。レール4.xをサポートするCMSを使用します。 – zee

+0

あなたのGemfileにはほかに何がありますか? Gemfile.lockには何が入っていますか? –

+0

@AaronBreckenridge私はGemfileと、linkeをGemfile.lockに更新しました。 –

答えて

3

申し訳ありませんが、悪いニュースです。

私はあなたのGemfileとGemfile.lockを見てきました。またPR​​とlocomotive_cmsの最新の2.5.xブランチhttps://github.com/locomotivecms/engine/tree/v2.5.xで見てきました。依存しているGemのバージョンのメンテナンスが不足しているため、機能が終了しました。

locomotive_cmsの名前がlocomotivecmsに変更され、バージョン3+にバンプされました。 locomotive_cmsの宝石はもはや維持されていません。それだけでなく、使用している他の依存関係、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) 

https://locomotive-v3.readme.io/docs/upgrade-to-v3のアップグレードガイドを参照してください。

+0

はい、私はHeorkuチームと連絡を取りましたが、実際これが理由です。 'locomotive_cms'はHeroku APIの最新バージョンと互換性がありません。 –

0

Procfileを追加します(私はRubyのバージョンを持っていますあなたのアプリのルートにProcfileという名前のファイルを置いてください)、薄いを使うようにHerokuに教えてください:

web: bundle exec thin start -p $PORT 

これは、あなたがHeroku上で本番で薄く走れるようにします。あなたのGemfileが適切に設定されていると仮定します。

2番目のメッセージは、Heroku API guideによると悪い要求を指していますが、最初のエラーメッセージにどのように接続されているかを知るのは難しいです。

+0

Procfileはすでに内容があります: 'web:bundle exec thin start -p $ PORT -e $ RACK_ENV' –

+0

シンのバージョンは?あなたは使っていますか? –

+0

「1.7.2」です。私は特に私のGemfileでそれを言及していない。 –

関連する問題