未能将一些参考文献推送到heroku?

时间:2017-10-14 02:55:13

标签: ruby-on-rails git heroku

当" git push heroku master"

时出错

使用" git push heroku master -f"

时出现同样的错误

错误:

Counting objects: 43015, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (14389/14389), done.
Writing objects: 100% (43015/43015), 18.52 MiB | 594.00 KiB/s, done.
Total 43015 (delta 26894), reused 42969 (delta 26863)
remote: Git submodules detected, installing:
remote: 
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: sh: 1: Gemfile: not found
remote: sh: 1: branch: not found
remote: ERROR:  While executing gem ... (Gem::CommandLineError)
remote:     Unknown command recaptcha
remote:  !
remote:  !     There was an error parsing your Gemfile, we cannot continue
remote:  !     
remote:  !     [!] There was an error parsing `Gemfile`: The `branch` option     for `gem 'recaptcha'` is not allowed. Only gems with a git source can specify a branch. Bundler cannot continue.
remote:  !     
remote:  !     #  from /tmp/build_05d951a3e30701bcecb25fd61ce3f179/Gemfile:46
remote:  !     #  -------------------------------------------
remote:  !     #  gem 'acts_as_tree_rails3'
remote:  !     >  gem 'recaptcha', :require => 'recaptcha/rails', :branch => 'rails3'
remote:  !     #
remote:  !     #  -------------------------------------------
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to arcane-retreat-58893.
remote: 
To https://git.heroku.com/arcane-retreat-58893.git
 ! [remote rejected]   master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/arcane-retreat-58893.git'

首先做一个" git pull"要合并,那么推命令对我来说也不起作用。

1 个答案:

答案 0 :(得分:0)

There was an error parsing your Gemfile

如此2014 question所示,heroku始终具有预接收挂钩(server side hook),用于测试/检查必需品。
Ruby version或其他标准开始。