gpt4 book ai didi

Heroku 推送被拒绝

转载 作者:行者123 更新时间:2023-12-02 22:17:31 24 4
gpt4 key购买 nike

-----> 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

Here is my Gemfile:

source :rubygemsruby '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'

The error is gone when I change

gem 'braintree', '2.22.0'

gem 'braintree'

最佳答案

更新:此答案无效。唯一的选择是提出支持票。

有一个新功能可以解决这个问题:

$ heroku config:set COMPILE_TIMEOUT=n

其中 n 是以秒为单位的数字。我使用 n=3000(默认值为 900)。

(注意:您可能需要启用 user-env-compile 才能使用此功能)

更新:请阅读对此答案的评论以获取更新信息!

关于Heroku 推送被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14218704/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com