前提・実現したいこと
Railsでアプリをデブロイしたいのですが、表題の通りエラーがでました。
デブロイの際には以下のサイトを参考にしました。
https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39#heroku%E3%81%AB%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4
初心者の質問で申し訳ございませんが、どうぞよろしくお願いします。
発生している問題・エラーメッセージ
$ git push heroku master Counting objects: 140, done. Compressing objects: 100% (126/126), done. Writing objects: 100% (140/140), 18.51 MiB | 4.69 MiB/s, done. Total 140 (delta 11), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: /tmp/build_9c9d8b23f857daa32885e865f62607d2/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' remote: /tmp/build_9c9d8b23f857daa32885e865f62607d2/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' remote: Tasks: TOP => environment remote: (See full trace by running task with --trace) remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to akanekukita. remote: To https://git.heroku.com/akanekukita.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/akanekukita.git'
該当のソースコード
試したこと
デブロイの際には以下のサイトを参考にしました。
https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39#heroku%E3%81%AB%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4
またgemの追加bunble済み
サイトの
config/routes.rbの設定
Gemfileの設定
config/datebase.ymlの設定
config/environments/production.rbの設定
bin以下のフォルダの設定(任意)
は行っていません。
補足情報(FW/ツールのバージョンなど)
gem
ruby
1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.5.1' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 5.2.1' 8# Use mysql as the database for Active Record 9gem 'mysql2', '0.5.2' 10# Use Puma as the app server 11gem 'puma', '~> 3.11' 12# Use SCSS for stylesheets 13gem 'sass-rails', '~> 5.0.7' 14# Use Uglifier as compressor for JavaScript assets 15gem 'uglifier', '>= 1.3.0' 16# See https://github.com/rails/execjs#readme for more supported runtimes 17# gem 'mini_racer', platforms: :ruby 18 19# Use CoffeeScript for .coffee assets and views 20gem 'coffee-rails', '~> 4.2' 21# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 22gem 'turbolinks', '~> 5' 23# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 24gem 'jbuilder', '~> 2.5' 25# Use Redis adapter to run Action Cable in production 26# gem 'redis', '~> 4.0' 27# Use ActiveModel has_secure_password 28# gem 'bcrypt', '~> 3.1.7' 29 30# Use ActiveStorage variant 31# gem 'mini_magick', '~> 4.8' 32 33# Use Capistrano for deployment 34# gem 'capistrano-rails', group: :development 35 36# Reduces boot times through caching; required in config/boot.rb 37gem 'bootsnap', '>= 1.1.0', require: false 38 39group :development, :test do 40 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 41 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 42end 43 44group :development do 45 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 46 gem 'web-console', '>= 3.3.0' 47 gem 'listen', '>= 3.0.5', '< 3.2' 48 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 49 gem 'spring' 50 gem 'spring-watcher-listen', '~> 2.0.0' 51end 52 53group :test do 54 # Addsport for Capybara system testing and selenium driver 55 gem 'capybara', '>= 2.15' 56 gem 'selenium-webdriver' 57 # Easy installation and use of chromedriver to run system tests with Chrome 58 gem 'chromedriver-helper' 59end 60 61# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 62gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 63 64gem 'pry-rails' 65gem 'compass-rails', '3.1.0' 66gem 'sprockets', '3.7.2' 67gem 'hirb' 68gem 'hirb-unicode' 69gem 'mini_magick' 70gem 'jquery-rails' 71gem 'image_processing', '~> 1.2'
回答1件
あなたの回答
tips
プレビュー