Git Heroku push 失败

bryanwong · 2012年02月14日 · 最后由 hlcfan 回复于 2012年03月13日 · 4392 次阅读
$ git push heroku master
Counting objects: 238, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (219/219), done.
Writing objects: 100% (238/238), 19.20 MiB | 58 KiB/s, done.
Total 238 (delta 30), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Using RUBY_VERSION: ruby-1.9.3-p0
-----> Installing dependencies using Bundler version 1.1.rc.7
       Running: bundle install --without development:test --path vendor/bundle --binstubs 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:
       * thin
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:myapppp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myapppp.git'

查了一些 Stackoverflow 上的问答,但是都没有解决。大家知道是怎么回事吗?

谢谢!情人节快乐!

错误输出说的很清楚了 gemfile 里没加 thin

Gemfile 里是这样写的:

group :production do
  gem 'thin'
end

我把 development 环境也加上试试。

#2 楼 @bryanwong 加后 bundle 一下

修改 thin 后,成功 push 了,谢谢大家的帮助!

@bryanwong 你好,怎么修改?是像二楼那样修改吗?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号