在将我的代码推送到Heroku时,我收到了这些错误
你有没有人可以建议我在这里缺少什么,这是版本问题还是其他什么?
git push heroku master
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets
Installing rails3_serve_static_assets... done
-----> Configure Rails 3 to disable x-sendfile
Installing rails3_disable_x_sendfile... done
-----> Configure Rails to log to stdout
Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
Unresolved dependencies detected; Installing...
Using --without development:test
Fetching source index for http://rubygems.org/
Could not find multi_json-1.3.3 in any of the sources
FAILED: http://devcenter.heroku.com/articles/bundler
! Heroku push rejected, failed to install gems via Bundler
最佳答案 也有同样的问题.在Gemfile中添加了以下代码作为一行并将其推送到Heroku并且它有效.
gem 'multi_json', '1.3.4'
希望有所帮助!