git push heroku master でエラーを改善してデプロイしたいです
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. Detected buildpacks: Ruby,Node.js See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order -----> Ruby app detected -----> Installing bundler 1.17.3 -----> Removing BUNDLED WITH version in the Gemfile.lock -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.6.6 ###### WARNING: You have the `.bundle/config` file checked into your repository It contains local state like the location of the installed bundle as well as configured git local gems, and other settings that should not be shared between multiple checkouts of a single repo. Please remove the `.bundle/` folder from your repo and add it to your `.gitignore` file. https://devcenter.heroku.com/articles/bundler-configuration ###### WARNING: Removing `Gemfile.lock` because it was generated on Windows. Bundler will do a full resolve so native gems are handled properly. This may result in unexpected gem versions being used in your app. In rare occasions Bundler may not be able to resolve your dependencies at all. https://devcenter.heroku.com/articles/bundler-windows-gemfile -----> Installing dependencies using bundler 1.17.3 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 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`. (中略) HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from sass: Ruby Sass has reached end-of-life and should no longer be used. * If you use Sass as a command-line tool, we recommend using Dart Sass, the new primary implementation: https://sass-lang.com/install * If you use Sass as a plug-in for a Ruby web framework, we recommend using the sassc gem: https://github.com/sass/sassc-ruby#readme * For more details, please refer to the Sass blog: https://sass-lang.com/blog/posts/7828841 Bundle completed (48.98s) Cleaning up the bundler cache. 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`. -----> Installing node-v10.15.3-linux-x64 -----> Detecting rake tasks -----> Preparing app for Rails asset pipeline Running: rake assets:precompile Yarn executable was not detected in the system. Download Yarn at https://yarnpkg.com/en/docs/install I, [2020-05-08T04:49:23.323077 #1146] INFO -- : Writing /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/public/assets/application-c23fdca49831f079989fd4fdfd5d9914062ee5af18297353d61de6a18361dfb5.js I, [2020-05-08T04:49:23.323789 #1146] INFO -- : Writing /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/public/assets/application-c23fdca49831f079989fd4fdfd5d9914062ee5af18297353d61de6a18361dfb5.js.gz rake aborted! Sass::SyntaxError: Invalid CSS after "}": expected selector or at-rule, was "}" (sass):709 /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/scss/parser.rb:1308:in `expected' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/scss/parser.rb:1238:in `expected' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/scss/parser.rb:42:in `parse' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:414:in `_to_tree' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:290:in `render' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define' /tmp/build_2ff425d7337c36d7ac485c4e2c7026b6/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => assets:precompile (See full trace by running task with --trace) ! ! Precompiling assets failed. ! ! Push rejected, failed to compile Ruby app. ! Push failed
あなたの回答
tips
プレビュー