我使用的是Ruby 2.2.7和Rails 3.2.21,並試圖在Heroku上部署版本爲:~> 2.5.7
的gem:locomotive_cms
,並且它被部署成功,但我面臨着以下錯誤:「捆綁器:未能加載命令:瘦」在Heroku
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)
我有thin
在我的Gemfile根據其文檔所必需的locomotivecms。
我也一直在其他類似的問題,但我仍然無法解決我的問題。我有紅寶石版本: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
只是一個供參考 - 你要如果你正在使用的軌道運行到所有類型的問題3.x.x和Ruby 2.2.x中使用支持rails 4.x的CMS。 – zee
你的Gemfile還有什麼? Gemfile.lock中有什麼? –
@AaronBreckenridge我已經更新了我的Gemfile中的問題,以及臨客,以Gemfile.lock的 –