Не удалось нажать на Heroku (Ruby 2.3.4) - PullRequest
0 голосов
/ 31 мая 2018

Я продолжаю получать эту ошибку, пытаясь подтолкнуть к героку.У меня не было проблем пару дней назад, и я не внес никаких изменений в свой gemfile.

Вот ошибка, которую я получаю, когда нажимаю на геройку.Он говорит: «Произошла ошибка при установке ruby-2.3.4», но я также не указываю в своем геме ruby-2.3.4, поэтому здесь нет комментариев в этой строке, как это предлагается в некоторых других ответах stackoverflow.

Stellas-MBP:curlav StellaHan$ git push heroku master
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.19 KiB | 0 bytes/s, done.
Total 9 (delta 7), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote:        Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.3.4.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
remote:        Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.3.4.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
remote:  !
remote:  !     An error occurred while installing ruby-2.3.4
remote:  !
remote:  !     Heroku recommends you use the latest supported Ruby version listed here:
remote:  !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:  !
remote:  !     For more information on syntax for declaring a Ruby version see:
remote:  !     https://devcenter.heroku.com/articles/ruby-versions
remote:  !
remote:  !
remote:  !     Debug InformationCommand: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.3.4.tgz -s -o - | tar zxf - ' failed unexpectedly:
remote:  !
remote:  !     gzip: stdin: unexpected end of file
remote:  !     tar: Child returned status 1
remote:  !     tar: Error is not recoverable: exiting now
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !	Push rejected to fierce-shore-32264.
remote:
To https://git.heroku.com/fierce-shore-32264.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fierce-shore-32264.git'

Вот мой гемфайл:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.3'
# Use Puma as the app server
gem 'puma', '~> 3.0'
gem 'pg', '~> 0.20'

# 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.2'
# 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 navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# 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', platform: :mri
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

group :production do
  gem 'rails_12factor'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'bootstrap-sass', '~> 3.3.7'
gem 'devise', '~> 4.2'

gem 'toastr-rails', "~> 1.0"

gem 'omniauth', '~> 1.6'
gem 'omniauth-facebook', '~> 4.0'
gem 'paperclip', '~> 5.1.0'
gem 'geocoder'

gem 'jquery-ui-rails', '~> 5.0'
gem 'momentjs-rails', '~> 2.17.1'

gem 'ransack', '~> 1.7'
gem 'twilio-ruby', '~> 4.11.1'
gem 'fullcalendar-rails', '~> 3.4.0'

gem 'stripe', '~> 3.0.0'
gem 'rails-assets-card', source: 'https://rails-assets.org'

gem 'omniauth-stripe-connect', '~> 2.10.0'
gem 'jquery-timepicker-addon-rails'

gem 'boxr'
gem 'redis', '~> 3.0'
gem 'aws-sdk', '~> 2.8'

Ответы [ 3 ]

0 голосов
/ 27 декабря 2018

Если вы обновите его в gemfile с какой-либо версии до принятой версии, вы можете получить следующую проблему при попытке запустить bundle или bundle install:

Your Ruby version is 2.3.3, but your Gemfile specified 2.4.5

Вы можете выполнить приведенную ниже команду.

Если вы используете rvm:

rvm install 2.5.3 rvm use 2.5.3

Дополнительные решения см. В приведенном ниже решении.

Оформление заказа:

Как исправить «Ваша версия Ruby 2.3.0, но ваш Gemfile указал 2.2.5» при запуске сервера

0 голосов
/ 14 июля 2019

Ваша версия ruby ​​2.3.4 больше не будет поддерживать Heroku-18.Вы должны пойти с Heroku старой версии Heroku-14.

используйте эту команду, чтобы переключиться на Heroku-14

стог heroku: установите cedar-14 -a your-app-name

0 голосов
/ 31 мая 2018

Heroku теперь требует Ruby версии 2.4.4, поэтому мне пришлось включить это в Gemfile.

Включите это в начало вашего файла gem: ruby ​​"2.4.4"

См. Этот документ для более подробной информации: https://devcenter.heroku.com/articles/ruby-support#ruby-versions

...