无法推送到 Heroku Push 被拒绝

Can't push to Heroku Push rejected

我正在尝试将更改推送到我的 heroku 应用程序,但一段时间后它冻结并出现错误。可能与我将 puma 用于网络服务器这一事实有关,但由于与 plezi(我从 websockets 使用的框架)的不兼容问题,我不得不删除。我的应用总共有 4mb。

我收到此错误消息:

remote:  !     Timed out compiling Ruby app (15 minutes) 
remote:  !     See https://devcenter.heroku.com/articles/slug-compiler#time-limit
remote: 
remote: Verifying deploy....
remote: 
remote: !   Push rejected to my-app-3605.
remote: 
To https://git.heroku.com/my-app-3605.git
  ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-app-3605.git'

我对 plezi 的设置是在 rails 中创建一个迷你应用程序。它创建了一个文件夹,在我的例子中是 appname\,其中包含它自己的 Gemfile、Procfile 和 appname.rb

|
|-- app\
|-- appname\
|-- bin\
.
. and so on
.

响应中包含的错误是

Timed out compiling Ruby app (15 minutes) remote: ! See https://devcenter.heroku.com/articles/slug-compiler#time-limit

您可能需要检查引用的 link 并确定为什么部署应用程序需要超过 15 分钟。

为了解决这个问题,需要添加到Rakefile

require 'plezi/rake'

这将解决 Plezi/Rails 推送到 Heroku 时的不兼容问题

http://www.plezi.io/docs/rake