前提・実現したいこと
railsで作成したアプリをherokuにあげたい。
数日間悩んで解決できないので質問させて下さい。汗
作成したアプリをherokuにデプロイしようと、ターミナルにてgit push heroku master
したところ以下のようなエラーが出ます。
エラーが複数出ていますが何一つ解決できない状況です。。
発生している問題・エラーメッセージ
ec2-user:~/environment/port (master) $ git push heroku master Counting objects: 24088, done. Compressing objects: 100% (22198/22198), done. Writing objects: 100% (24088/24088), 263.77 MiB | 9.49 MiB/s, done. Total 24088 (delta 8104), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Installing bundler 1.17.3 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.3 remote: -----> Installing dependencies using bundler 1.17.3 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: Your Gemfile lists the gem jquery-rails (>= 0) more than once. remote: You should probably keep only one of them. remote: Remove any duplicate entries and specify the gem only once (per group). remote: While it's not a problem now, it could cause errors if you change the version of one of them later. remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. remote: Fetching gem metadata from https://rubygems.org/......... 省略,, remote: Bundle complete! 30 Gemfile dependencies, 77 gems now installed. remote: Gems in the groups development and test were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Post-install message from i18n: remote: remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. remote: But that may break your application. remote: remote: If you are upgrading your Rails application from an older version of Rails: remote: remote: Please check your Rails app for 'config.i18n.fallbacks = true'. remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be remote: 'config.i18n.fallbacks = [I18n.default_locale]'. remote: If not, fallbacks will be broken in your app by I18n 1.1.x. remote: remote: If you are starting a NEW Rails application, you can ignore this notice. remote: remote: For more info see: remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 remote: remote: Bundle completed (211.51s) remote: Cleaning up the bundler cache. remote: Your Gemfile lists the gem jquery-rails (>= 0) more than once. remote: You should probably keep only one of them. remote: Remove any duplicate entries and specify the gem only once (per group). remote: While it's not a problem now, it could cause errors if you change the version of one of them later. remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. remote: -----> Installing node-v10.15.3-linux-x64 remote: Detected manifest file, assuming assets were compiled locally remote: -----> Detecting rails configuration remote: -----> Detecting rake tasks remote: remote: ###### WARNING: remote: remote: Removing `vendor/bundle`. remote: Checking in `vendor/bundle` is not supported. Please remove this directory remote: and add it to your .gitignore. To vendor your gems with Bundler, use remote: `bundle pack` instead. remote: remote: remote: ###### WARNING: remote: remote: Detecting rails configuration failed remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug remote: remote: remote: ###### WARNING: remote: remote: There is a more recent Ruby version available for you to use: remote: remote: 2.6.5 remote: remote: The latest version will include security and bug fixes, we always recommend remote: running the latest version of your minor release. remote: remote: Please upgrade your Ruby version. remote: remote: For all available Ruby versions see: remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes remote: remote: remote: ###### WARNING: remote: remote: No Procfile detected, using the default web server. remote: We recommend explicitly declaring how to boot your server process via a Procfile. remote: https://devcenter.heroku.com/articles/ruby-default-web-server remote: remote: remote: remote: -----> Discovering process types remote: Procfile declares types -> (none) remote: Default types for buildpack -> console, rake, web remote: remote: -----> Compressing... remote: ! Compiled slug size: 739.7M is too large (max is 500M). remote: ! See: http://devcenter.heroku.com/articles/slug-size remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to sheltered-brook-37465. remote: To https://git.heroku.com/sheltered-brook-37465.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/sheltered-brook-37465.git'
該当のソースコード
###### WARNING:の部分は気になりますが、調べたところ警告なので一旦は無視していいと記載があった為先に、 Post-install message from i18n: remote: remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. remote: But that may break your application. remote: remote: If you are upgrading your Rails application from an older version of Rails: remote: remote: Please check your Rails app for 'config.i18n.fallbacks = true'. remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be remote: 'config.i18n.fallbacks = [I18n.default_locale]'. remote: If not, fallbacks will be broken in your app by I18n 1.1.x. remote: remote: If you are starting a NEW Rails application, you can ignore this notice. この部分の解決を先に取り組んでいます。
試したこと
エラー内容からgem 'rails-i18n'
というgemが原因のようなので調べたところrails 5.2.2
以下は
production.rbの内容を config.i18n.fallbacks = true
からconfig.i18n.fallbacks = [I18n.default_locale]
に変える必要があると知りました。しかし改善されず。
お忙しい中申し訳ありませんが、何か他に原因などありますでしょうか?汗
補足情報(FW/ツールのバージョンなど)
ruby 2.6.3
Rails 5.1.7
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/12 11:47