ruby-on-rails – Heroku拒绝推动成熟应用程序(pre-receive hook
我越来越
FAILED: http://devcenter.heroku.com/articles/bundler ! Heroku推被拒绝,未能通过Bundler安装宝石 这是一个目前正在使用heroku的应用程序,但是heroku不允许git push heroku master更新代码. 但是,如果我将代码克隆到新文件夹并执行heroku创建以创建具有种子数据的新应用程序,则新应用程序可以正常工作.但是,我不想使用新的应用程序,因为我有想要保留的功能应用程序的数据. 现有应用程序或宝石似乎存在阻止更新的内容.我不认为数据可以阻止安装宝石,所以我不知道该怎么做. 建议? “Heroku推送被拒绝,未能通过Bundler安装宝石”意味着问题在于更新宝石,还是红鲱鱼? 谢谢. $git push heroku master -----> 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 这应该会得到一个新的应用程序. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |