【发布时间】:2017-08-17 13:47:34
【问题描述】:
我尝试部署我的 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
我有一些作为 gem 包含的存储库(如您将在上面的消息中看到的 accounting)。
我认为我需要使用捆绑程序版本 1.15.2 重建我的 Gemfile.lock。这没有帮助。
正如错误所说,应用程序无法编译。你知道为什么,或者你知道找出真正问题的好方法吗?
我对部署不太熟悉,所以如果您需要一些信息,请发表评论,我会更新这个问题。
【问题讨论】:
-
会计是您保存在私人仓库中的宝石吗?如果是这种情况,您需要使用 buildpack。查看this one
-
同时尝试粘贴
heroku logs。它们可能包含一些有用的信息来调试它。 -
是的,会计是作为宝石包含的私人回购。它托管在 Gitlab 上。我将搜索 Gitlab 的 buildpack。
-
这肯定是问题所在。不幸的是,我对 Gitlab 无能为力。
标签: ruby-on-rails ruby heroku deployment