-----> Ruby/Rack app detected -----> Using Ruby version: ruby-1.9.3 -----> Installing dependencies using Bundler version 1.3.0.pre.2 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from http://rubygems.org/.. ^[[C^[[D^[[D/app/slug-compiler/lib/utils.rb:66:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../../tmp/buildpacks/ruby/bin/compile /tmp/build_22uiq5k0q45sp /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=900.1076555252075 (Utils::TimeoutError) from /app/slug-compiler/lib/utils.rb:52:in `loop' from /app/slug-compiler/lib/utils.rb:52:in `block in spawn' from /app/slug-compiler/lib/utils.rb:47:in `popen' from /app/slug-compiler/lib/utils.rb:47:in `spawn' from /app/slug-compiler/lib/buildpack.rb:37:in `block in compile' from /app/slug-compiler/lib/buildpack.rb:35:in `fork' from /app/slug-compiler/lib/buildpack.rb:35:in `compile' from /app/slug-compiler/lib/slug.rb:497:in `block in run_buildpack' from /app/slug-compiler/lib/utils.rb:121:in `log' from /app/slug-compiler/lib/slug.rb:748:in `log' from /app/slug-compiler/lib/slug.rb:496:in `run_buildpack' from /app/slug-compiler/lib/slug.rb:125:in `block (2 levels) in compile' from /app/slug-compiler/lib/utils.rb:102:in `block in timeout' from /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout' from /app/slug-compiler/lib/utils.rb:102:in `rescue in timeout' from /app/slug-compiler/lib/utils.rb:97:in `timeout' from /app/slug-compiler/lib/slug.rb:114:in `block in compile' from /app/slug-compiler/lib/utils.rb:121:in `log' from /app/slug-compiler/lib/slug.rb:748:in `log' from /app/slug-compiler/lib/slug.rb:113:in `compile' from /app/slug-compiler/bin/slugc:85:in `block in ' from /app/slug-compiler/lib/slug.rb:505:in `block in lock' from /app/slug-compiler/lib/repo_lock.rb:44:in `call' from /app/slug-compiler/lib/repo_lock.rb:44:in `run' from /app/slug-compiler/lib/slug.rb:505:in `lock' from /app/slug-compiler/bin/slugc:66:in `' ! Heroku push rejected, failed to compile Ruby/rack app
这是我的Gemfile:
source :rubygems ruby '1.9.3' gem 'sinatra', '1.3.3' gem 'sinatra-contrib', '1.3.2' gem 'thin', '1.5.0' gem 'haml', '3.1.6' gem 'bcrypt-ruby', '3.0.1' gem 'mongo', '1.8.0' gem 'bson_ext', '1.8.0' gem 'mongoid', '3.0.16' gem 'sinatra-flash', '0.3.0' gem 'braintree', '2.22.0' gem 'faye', '0.8.6' #gem 'pony'
更改
时错误消失了gem 'braintree', '2.22.0'
到
gem 'braintree'
答案 0 :(得分:5)
更新:此答案无效。唯一的选择是提出支持票。
有一项新功能可以解决此问题:
$ heroku config:set COMPILE_TIMEOUT=n
其中n是以秒为单位的数字。我使用n = 3000(默认为900)。
(注意:您可能需要启用user-env-compile才能使用此功能)
更新:请阅读此答案的评论以获取最新信息!
答案 1 :(得分:0)
对我来说,我找到的解决方案是: