これは、Sass::SyntaxError: File to import not found or unreadable: home.scss.以下すべてエラーの原因ということなのでしょうか。すいません、知識不足で分かりません。どなたかご教授ください。
build
1 ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. 2 Detected buildpacks: Ruby,Node.js 3 See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order 4-----> Ruby app detected 5-----> Compiling Ruby/Rails 6-----> Using Ruby version: ruby-2.6.5 7-----> Vendoring libpq 5.12.1 8-----> Removing BUNDLED WITH version in the Gemfile.lock 9###### WARNING: 10 Removing `Gemfile.lock` because it was generated on Windows. 11 Bundler will do a full resolve so native gems are handled properly. 12 This may result in unexpected gem versions being used in your app. 13 In rare occasions Bundler may not be able to resolve your dependencies at all. 14 https://devcenter.heroku.com/articles/bundler-windows-gemfile 15-----> Installing dependencies using bundler 2.0.2 16 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 17 Your Gemfile lists the gem tzinfo-data (>= 0) more than once. 18 You should probably keep only one of them. 19 Remove any duplicate entries and specify the gem only once (per group). 20 While it's not a problem now, it could cause errors if you change the version of one of them later. 21 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`. 22 Fetching gem metadata from https://rubygems.org/.......... 23 Fetching gem metadata from https://rubygems.org/. 24 25 省略 26 27 Bundle complete! 34 Gemfile dependencies, 86 gems now installed. 28 Gems in the groups development and test were not installed. 29 Bundled gems are installed into `./vendor/bundle` 30 Post-install message from i18n: 31 32 HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. 33 But that may break your application. 34 35 If you are upgrading your Rails application from an older version of Rails: 36 37 Please check your Rails app for 'config.i18n.fallbacks = true'. 38 If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 39 'config.i18n.fallbacks = [I18n.default_locale]'. 40 If not, fallbacks will be broken in your app by I18n 1.1.x. 41 42 If you are starting a NEW Rails application, you can ignore this notice. 43 44 For more info see: 45 https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 46 47 Post-install message from sass: 48 49 Ruby Sass has reached end-of-life and should no longer be used. 50 51 * If you use Sass as a command-line tool, we recommend using Dart Sass, the new 52 primary implementation: https://sass-lang.com/install 53 54 * If you use Sass as a plug-in for a Ruby web framework, we recommend using the 55 sassc gem: https://github.com/sass/sassc-ruby#readme 56 57 * For more details, please refer to the Sass blog: 58 https://sass-lang.com/blog/posts/7828841 59 60 Bundle completed (218.22s) 61 Cleaning up the bundler cache. 62-----> Installing node-v10.15.3-linux-x64 63-----> Detecting rake tasks 64-----> Preparing app for Rails asset pipeline 65 Running: rake assets:precompile 66 Yarn executable was not detected in the system. 67 Download Yarn at https://yarnpkg.com/en/docs/install 68 I, [2020-02-06T01:24:52.135927 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/rails_admin/rails_admin-4d540b308ec792e61b7cd24122824d74adc52d5622e8fb7fdb58854fc89dec8b.js 69 I, [2020-02-06T01:24:52.136264 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/rails_admin/rails_admin-4d540b308ec792e61b7cd24122824d74adc52d5622e8fb7fdb58854fc89dec8b.js.gz 70 I, [2020-02-06T01:25:02.668343 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/rails_admin/rails_admin-96d597cbe7642ce04bf3c53b9ef0bc48de7678e415dc3643402cfbb8b1a35399.css 71 I, [2020-02-06T01:25:02.668555 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/rails_admin/rails_admin-96d597cbe7642ce04bf3c53b9ef0bc48de7678e415dc3643402cfbb8b1a35399.css.gz 72 I, [2020-02-06T01:25:02.669043 #1795] INFO -- : Writing 73 省略 74 I, [2020-02-06T01:25:55.041763 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/application-970452107e253506cf9aca8119d0801a1c3ebac2fdee4ec54ad992b2ca009d61.js 75 I, [2020-02-06T01:25:55.042068 #1795] INFO -- : Writing /tmp/build_440d3a97b32159ce086c0c26cbb0439a/public/assets/application-970452107e253506cf9aca8119d0801a1c3ebac2fdee4ec54ad992b2ca009d61.js.gz 76 rake aborted! 77 Sass::SyntaxError: File to import not found or unreadable: home.scss. 78 (sass):1796 79 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:67:in `rescue in import' 80 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:44:in `import' 81 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:28:in `imported_file' 82 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:37:in `css_import?' 83 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-processor_utils.rb:57:in `block in call_processors' 84 省略 85 86 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define' 87 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger' 88 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define' 89 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' 90 91 92 Caused by: 93 Sass::SyntaxError: File to import not found or unreadable: home.scss. 94 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:65:in `import' 95 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:28:in `imported_file' 96 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/import_node.rb:37:in `css_import?' 97 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sass- 98 省略 99 100 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger' 101 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define' 102 /tmp/build_440d3a97b32159ce086c0c26cbb0439a/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' 103 Tasks: TOP => assets:precompile 104 (See full trace by running task with --trace) 105 ! 106 ! Precompiling assets failed. 107 ! 108 ! Push rejected, failed to compile Ruby app. 109 ! Push failed
下記が気になりますね。バージョンによる書き方の違いでしょうか?
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.
ご回答ありがとうございます。
ご指摘のところ、また、今回adminを入れようとしてcancanに関する部分を見つけました。あと、scssで、require_treeの辺りで直したところ、Verifying deploy... done.herokuへのpushは成功するのですが、ページが表示されません。
heroku logsでは、以下が表示されます。
2020-02-06T02:52:06.379539+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=00000000.com request_id=12bbc612-e0e0-4994-9daf-187d00000 fwd=" " dyno= connect= service= status=503 bytes= protocol=https
2020-02-06T02:52:07.064179+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=00000.com request_id=ae988ee2-91ee-4eb7-b8e0-df0000 fwd=" " dyno= connect= service= status=503 bytes= protocol=https
/favicon.icoの辺りに問題があるのでしょうか?
あと、
bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid
これも原因っぽいのですが、よく分かりません。。
すいません。
追加
tmp/socketsとtmp/pids/server.pidのフォルダを作ってみてもだめでした。
回答1件
あなたの回答
tips
プレビュー