加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Heroku拒绝推动成熟应用程序(pre-receive hook

发布时间:2020-12-17 03:27:45 所属栏目:百科 来源:网络整理
导读:我越来越 FAILED: http://devcenter.heroku.com/articles/bundler ! Heroku推被拒绝,未能通过Bundler安装宝石 到git@heroku.com:.. ?! [远程拒绝]主人 – 主人(预先接收挂钩拒绝) 错误:未能推送一些参考………… .. (见完整列表的底部) 这是一个目前正在
我越来越

FAILED: http://devcenter.heroku.com/articles/bundler

! 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

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

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

解决方法

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

这意味着您已将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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读