【发布时间】:2023-03-11 10:59:01
【问题描述】:
我来了
FAILED: http://devcenter.heroku.com/articles/bundler
! Heroku 推送被拒绝,无法通过 Bundler 安装 gem 到 git@heroku.com:... ! [remote denied] master -> master (pre-receive hook denied) 错误:未能将一些引用推送到………….. (完整列表见底部)
这是一个目前正在使用 heroku 的应用程序,但 heroku 不允许 git push heroku master 更新代码。
但是,如果我将代码克隆到一个新文件夹并执行 heroku create 以使用种子数据创建一个新应用程序,则新应用程序可以正常工作。但是,我不想使用新应用,因为我有关于我想要保留的功能应用的数据。
现有应用或宝石上似乎有一些东西拒绝更新。我认为数据不会阻止 gem 的安装,所以我不知道该怎么做。
建议?
“Heroku 推送被拒绝,无法通过 Bundler 安装 gems”是否意味着问题出在更新 gem 中,或者这是一个红鲱鱼?
谢谢。
$ git push heroku master 计数对象:536,完成。 Delta 压缩最多使用 2 个线程。 压缩对象:100% (125/125),完成。 写入对象:100% (391/391),1.08 MiB,完成。 总计 391(增量 262),重复使用 373(增量 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
! Heroku 推送被拒绝,无法通过 Bundler 安装 gems
致 git@heroku.com:... ! [remote denied] master -> master (pre-receive hook denied) 错误:未能将一些引用推送到…………..
【问题讨论】:
-
我认为这是他们的关键:
Windows Gemfile.lock detected, ignoring it.。查看“Bundler 在 Windows 上工作吗?”这个问题。在这里:engineyard.com/blog/2011/bundler-pro-tip。另外:stackoverflow.com/questions/5954236/… -
@RickHeller 请接受 Codeglot 的回答,因为您显然对此很满意。
标签: ruby-on-rails ruby heroku gem