简体   繁体   English

Heroku在安装Gemfile依赖项时陷入困境

[英]Heroku gets stuck installing Gemfile dependencies

When I try to deploy to heroku the gems never finished installing. 当我尝试将部署到heroku时,gem从未完成安装。 I did a bundle update on my local machine to see if there was a problem. 我在本地计算机上进行了捆绑更新,以查看是否存在问题。 That did not help. 那没有帮助。

I suspect it might be libv8, but that should not be deployed because of the following in my config/application.rb file: 我怀疑它可能是libv8,但是由于我的config / application.rb文件中存在以下内容,因此不应该部署它:

Bundler.require(*Rails.groups(:assets => %w(development test)))

Here is the log when I deploy my rails app to heroku: 这是将Rails应用程序部署到heroku时的日志:

$ git push heroku master
Counting objects: 176, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (156/156), done.
Writing objects: 100% (176/176), 37.46 KiB, done.
Total 176 (delta 41), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.0.pre.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from https://rubygems.org/.........
       Fetching gem metadata from https://rubygems.org/..
       Installing rake (10.0.3)
       Installing i18n (0.6.1)           
       Installing multi_json (1.5.0)
       Installing activesupport (3.2.9)           
       Installing builder (3.0.4)
       Installing activemodel (3.2.9)           
       Installing erubis (2.7.0)
       Installing journey (1.0.4)           
       Installing rack (1.4.1)
       Installing rack-cache (1.2)           
       Installing rack-test (0.6.2)
       Installing hike (1.2.1)           
       Installing tilt (1.3.3)
       Installing sprockets (2.2.2)
       Installing actionpack (3.2.9)
       Installing mime-types (1.19)
       Installing polyglot (0.3.3)
       Installing treetop (1.4.12)
       Installing mail (2.4.4)
       Installing actionmailer (3.2.9)
       Installing arel (3.0.2)
       Installing tzinfo (0.3.35)
       Installing activerecord (3.2.9)
       Installing activeresource (3.2.9)
       Installing bcrypt-ruby (3.0.1)
       Installing sass (3.2.5)
       Installing bootstrap-sass (2.2.2.0)
       Installing coffee-script-source (1.4.0)
       Installing execjs (1.4.0)
       Installing coffee-script (2.2.0)
       Installing rack-ssl (1.3.2)
       Installing json (1.7.6)
       Installing rdoc (3.12)
       Installing thor (0.16.0)
       Installing railties (3.2.9)
       Installing coffee-rails (3.2.2)
       Installing jquery-rails (2.1.4)

Here is my Gemfile: 这是我的Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.9'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

gem 'json'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'bootstrap-sass', '~> 2.2.2.0'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  gem 'libv8'
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

It was installing libv8. 它正在安装libv8。 When I first started I needed that to get around some error. 当我第一次开始时,我需要它来解决一些错误。 Now it seems I do not need it. 现在看来我不需要了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM