云服务 Heroku 部署,报错.

hlcfan · 2012年03月13日 · 最后由 hlcfan 回复于 2012年10月25日 · 4606 次阅读

大家好,我在往 heroku 上部署应用的时候,报错了。奋斗了好长时间无果.唉...

Pushing to [email protected]:gentle-water-2643.git
Counting objects: 507, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (449/449), done.
Writing objects: 100% (507/507), 540.76 KiB | 111 KiB/s, done.
Total 507 (delta 122), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> 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:
       * will_paginate
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To [email protected]:gentle-water-2643.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:gentle-water-2643.git'

我的 Gemfile 里,我有写:

gem 'will_paginate', :group => [:development, :production]

为什么报错呢。

add the updated Gemfile.lock to version control.

@lainuo yes.i did that.but still dont work.

maybe u need to rails s in your localhost to keep the Gemfile.lock sync and then update it again.

bundle install git commit -am 'updated' git push heroku master

已经解决,可能我在一个文件夹下有两个 repo 导致的问题。

想知道怎么解决的,我的依然在纠结中。。。

我也遇到了类似的问题 能详细说明一下么 我怀疑我也是一个文件夹下有两个 repo 导致的 改怎么查 怎么解决呢 谢谢

#6 楼 @hlcfan 可以手把手教我次不,

#9 楼 @menghuanwd 怎么了?google 下一大堆

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