【发布时间】:2018-07-16 14:44:46
【问题描述】:
我无法在 Heroku 中上传 ruby 应用程序,我对错误进行了多次搜索,但没有任何效果,有人可以帮助我吗?遵循错误日志:
-----> 检测到 Ruby 应用程序
-----> 编译 Ruby/Rails
-----> 使用 Ruby 版本:ruby-2.3.4
-----> 使用 bundler 1.15.2 安装依赖项
运行: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
正在从 https://rubygems.org/ 获取 gem 元数据......
从https://rubygems.org/..获取版本元数据
从https://rubygems.org/ 获取依赖元数据。
获取 rake 10.5.0
获取 i18n 0.7.0
使用 json 1.8.3
获取 minitest 5.8.4
安装 i18n 0.7.0
安装 minitest 5.8.4
安装 rake 10.5.0
获取 thread_safe 0.3.5
安装 thread_safe 0.3.5
获取构建器 3.2.2
安装 builder 3.2.2
获取 erubis 2.7.0
获取 nokogiri 1.6.7.2
取架 1.6.4
安装 erubis 2.7.0
安装机架 1.6.4
获取 mime 类型 2.6.1
安装 mime-types 2.6.1
获取 arel 6.0.3
安装 arel 6.0.3
使用捆绑器 1.15.2
获取咖啡脚本源 1.9.1.1
获取 execjs 2.6.0
安装 execjs 2.6.0
安装 coffee-script-source 1.9.1.1
获取雷神 0.19.1
获取 multi_json 1.11.2
安装雷神 0.19.1
安装 multi_json 1.11.2
获取第 1.0.0 页
使用本机扩展安装 pg 1.0.0
使用 rdoc 4.2.1
获取 sass 3.4.21
安装 sass 3.4.21
获取倾斜 2.0.8
安装倾斜 2.0.8
获取 tzinfo 1.2.2
安装 tzinfo 1.2.2
获取机架测试 0.6.3
安装 rack-test 0.6.3
获取链轮 3.3.0
获取邮件 2.6.3
安装链轮 3.3.0
获取 uglifier 2.7.2
安装邮件 2.6.3
安装 uglifier 2.7.2
获取咖啡脚本 2.4.1
安装咖啡脚本 2.4.1
获取 sdoc 0.4.1
安装 sdoc 0.4.1
下载 nokogiri-1.6.7.2 发现依赖项不在 API 或 锁定文件 (mini_portile2 (~> 2.0.0.rc2))。
使用--full-index安装或运行bundle update nokogiri应该 解决问题。
Bundler 输出:从 https://rubygems.org/ 获取 gem 元数据......
从 https://rubygems.org/.. 获取版本元数据
从https://rubygems.org/ 获取依赖元数据。
获取 rake 10.5.0
获取 i18n 0.7.0
使用 json 1.8.3
获取 minitest 5.8.4
安装 i18n 0.7.0
安装 minitest 5.8.4
安装 rake 10.5.0
获取 thread_safe 0.3.5
安装 thread_safe 0.3.5
获取构建器 3.2.2
安装 builder 3.2.2
获取 erubis 2.7.0
获取 nokogiri 1.6.7.2
取架 1.6.4
安装 erubis 2.7.0
安装机架 1.6.4
获取 mime 类型 2.6.1
安装 mime-types 2.6.1
获取 arel 6.0.3
安装 arel 6.0.3
使用捆绑器 1.15.2
获取咖啡脚本源 1.9.1.1
获取 execjs 2.6.0
安装 execjs 2.6.0
安装 coffee-script-source 1.9.1.1
获取雷神 0.19.1
获取 multi_json 1.11.2
安装雷神 0.19.1
安装 multi_json 1.11.2
获取第 1.0.0 页
使用本机扩展安装 pg 1.0.0
使用 rdoc 4.2.1
获取 sass 3.4.21
安装 sass 3.4.21
获取倾斜 2.0.8
安装倾斜 2.0.8
获取 tzinfo 1.2.2
安装 tzinfo 1.2.2
获取机架测试 0.6.3
安装 rack-test 0.6.3
获取链轮 3.3.0
获取邮件 2.6.3
安装链轮 3.3.0
获取 uglifier 2.7.2
安装邮件 2.6.3
安装 uglifier 2.7.2
获取咖啡脚本 2.4.1
安装咖啡脚本 2.4.1
获取 sdoc 0.4.1
安装 sdoc 0.4.1
下载 nokogiri-1.6.7.2 发现依赖项不在 API 或 锁定文件 (mini_portile2 (~> 2.0.0.rc2))。
使用--full-index安装或运行bundle update nokogiri应该 解决问题。
!
!无法通过 Bundler 安装 gem。
!
! Push 被拒绝,无法编译 Ruby 应用程序。
!推送失败
关注我的 Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.6)
actionview (= 4.2.6)
activesupport (= 4.2.6)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.6)
activesupport (= 4.2.6)
globalid (>= 0.3.0)
activemodel (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
activerecord (4.2.6)
activemodel (= 4.2.6)
activesupport (= 4.2.6)
arel (~> 6.0)
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.4)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
builder (3.2.3)
byebug (10.0.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.3)
debug_inspector (0.0.3)
erubis (2.7.0)
execjs (2.7.0)
ffi (1.9.21)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (0.9.3)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.6)
loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
multi_json (1.13.1)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
pg (1.0.0)
rack (1.6.8)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.6)
actionmailer (= 4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
activemodel (= 4.2.6)
activerecord (= 4.2.6)
activesupport (= 4.2.6)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.6)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.9)
activesupport (>= 4.2.0, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.6)
actionpack (= 4.2.6)
activesupport (= 4.2.6)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rdoc (4.3.0)
sass (3.5.5)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.2)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (2.0.2)
activesupport (>= 4.2)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.0)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.5)
execjs (>= 0.3.0, < 3)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
PLATFORMS
ruby
DEPENDENCIES
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
pg
rails (= 4.2.6)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
BUNDLED WITH
1.16.1
【问题讨论】:
-
你在本地运行
bundle install吗? -
另外,请在本地运行
bundle update nokogiri以确保它进入锁定文件。 -
嗨,是的,关于捆绑安装的结果是:捆绑完成! 12 个 Gemfile 依赖项,现在安装了 60 个 gem。使用
bundle info [gemname]查看捆绑 gem 的安装位置。 -
bundle update nokogiri ---> Bundler 试图更新 nokogiri 但它的版本保持不变 Bundle 更新了!但确实有效:/
标签: ruby-on-rails ruby heroku