Heroku拒绝推动成熟应用程序(预接收挂钩拒绝)

Ric*_*ler 5 ruby gem ruby-on-rails heroku

我越来越

   FAILED: http://devcenter.heroku.com/articles/bundler
Run Code Online (Sandbox Code Playgroud)

!Heroku推送被拒绝,无法通过Bundler安装宝石到git@heroku.com:... [远程拒绝]主 - >主(预接收挂钩拒绝)错误:未能推送一些参考............ ..(见完整列表的底部)

这是一个目前正在使用heroku的应用程序,但是heroku不允许git push heroku master更新代码.

但是,如果我将代码克隆到新文件夹并执行heroku创建以创建具有种子数据的新应用程序,则新应用程序可以正常工作.但是,我不想使用新的应用程序,因为我有想要保留的功能应用程序的数据.

现有应用程序或宝石似乎存在阻止更新的内容.我不认为数据可以阻止安装宝石,所以我不知道该怎么做.

建议?

"Heroku推送被拒绝,未能通过Bundler安装宝石"意味着问题在于更新宝石,还是红鲱鱼?

谢谢.

$ git push heroku master计数对象:536,完成.Delta压缩最多使用2个线程.压缩对象:100%(125/125),完成.书写对象:100%(391/391),1.08 MiB,完成.总计391(delta 262),重复使用373(delta 251)

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> 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
       Windows Gemfile.lock detected, ignoring it.
       You have modified your Gemfile in development but did not check
       the resulting snapshot (Gemfile.lock) into version control
   You have added to the Gemfile:
   * source: rubygems repository http://rubygems.org/
   * rails (= 3.0.5)
   * haml
   * haml-rails
   * sqlite3-ruby
   * devise (= 1.1.5)
   * omniauth
   * declarative_authorization
   * will_paginate (= 3.0.pre2)
   * nifty-generators
   * acts-as-taggable-on
   * acts_as_commentable
   * aws-s3
   * jquery-rails
   * rspec-rails
   * annotate
   * faker (= 0.3.1)
   * hpricot (= 0.8.3)
   * ruby_parser
   * paperclip (~> 2.3)
   * formtastic (~> 1.2.3)
   * hirb
   * kaminari
   * rspec (= 2.5.0)
   * webrat
   * factory_girl_rails (= 1.0)
   * cucumber
   * mocha
   FAILED: http://devcenter.heroku.com/articles/bundler
Run Code Online (Sandbox Code Playgroud)

!Heroku推被拒绝,未能通过Bundler安装宝石

到git@heroku.com:... [远程拒绝]主 - >主(预接收挂钩拒绝)错误:未能推送一些参考............ ..

the*_*gah 7

You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
Run Code Online (Sandbox Code Playgroud)

这意味着您已将gem添加到gemfile但尚未更新到.Gemfile.lock与此文件不同步.

您需要更新您的捆绑包.

在应用程序目录的控制台中运行此命令: bundle

然后做 git push heroku

你应该好好去.

**修改应用程序并重新开始.

gem install taps #install taps
heroku db:pull   #pull your data to your local machine

rm -rf .git #remove your git repo 
git init    #create a new repo
git add .   #add all the files
git commit -m 'master' #commit as master

heroku create #create a new heroku app
heroku rename myapp #rename the app
git push heroku master #push to heroku

heroku db:push #push your data to heroku
Run Code Online (Sandbox Code Playgroud)

这应该会得到一个新的应用程序.