我尝试部署我的ruby应用程序。我得到这个错误:Heroku部署Ruby应用程序:未能推送一些参考
[X] Shell command exited with status code 32512!
=====================[ CRASH REPORT ]=====================
COMMAND:
cd /tmp/build_b8047ce119e9ca6cd5474afa9f1e57f9/vendor/bundle/ruby/2.4.0/bundler/gems/accounting-d82701194c3b
The latest bundler is 1.15.3, but you are currently running 1.15.2.
To update, run `gem install bundler`/accounting-frontend && yarn install
ERROR:
==========================================================
! Push rejected, failed to compile Run app.
! Push failed
Verifying deploy...
! Push rejected to my-app-dev.
To https://git.heroku.com/my-app-dev.git
! [remote rejected] 24f2f837b3645a2c10bf2484322f8dd5d36ad2d5 -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-app-dev.git'
to retry, use: --limit @/Users/username/repositories/sd/playbooks/my-app/dev.retry
PLAY RECAP *********************************************************************
127.0.0.1 : ok=3 changed=2 unreachable=0 failed=1
我有包括作为宝石几个仓库(如accounting
你会在消息读到以上)。
我以为我需要使用捆绑器版本1.15.2重建我的Gemfile.lock
。这没有帮助。
由于错误说应用程序无法编译。你知道为什么或者你知道解决真正问题的好方法吗?
我不太熟悉部署,所以如果您需要某些信息,请留下评论,我会更新此问题。
会计是一个宝石,你保持私人回购?如果是这种情况,你需要使用buildpack。看看[这一个](https://github.com/AutoUncle/heroku-buildpack-github-netrc) – radubogdan
也尝试粘贴'heroku日志'。它们可能包含一些有用的信息来调试。 – radubogdan
是的,会计是一个包含在宝石中的私人回购。它在Gitlab上托管。我将搜索Gitlab的buildpack。 – Fabic