-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
You have added to the Gemfile:
* sqlite3 (= 1.3.5)
* sass-rails (= 3.2.5)
* coffee-rails (= 3.2.2)
* uglifier (= 1.2.3)
* jquery-rails (= 2.0.2)
* pg (= 0.12.2)
You have deleted from the Gemfile:
* coffee-rails (~> 3.2.1)
* jquery-rails
* sass-rails (~> 3.2.3)
* sqlite3
* uglifier (>= 1.0.3)
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
答案 0 :(得分:1)
正如日志所说:
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
我认为在推送到heroku之前你还没有提交Gemfile.lock文件。运行bundle install然后提交Gemfile和Gemfile.lock。之后将代码推送到heroku。