質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

Q&A

0回答

717閲覧

HerokuにGitHubの内容を反映させたい

keibooooou

総合スコア2

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

0グッド

0クリップ

投稿2020/11/18 10:52

前提・実現したいこと

Githubで変更した内容をHerokuに反映させたいです。

発生している問題・エラーメッセージ

ターミナルでgit push heroku masterを行うとPrecompiling assets failed.というエラーが出ました。

該当のソースコード

Enumerating objects: 70, done. Counting objects: 100% (70/70), done. Delta compression using up to 8 threads Compressing objects: 100% (47/47), done. Writing objects: 100% (51/51), 14.60 KiB | 1.62 MiB/s, done. Total 51 (delta 16), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Installing bundler 2.1.4 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.5 remote: -----> Installing dependencies using bundler 2.1.4 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 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: Using rake 13.0.1 remote: Using concurrent-ruby 1.1.7 remote: Using minitest 5.14.2 remote: Using thread_safe 0.3.6 remote: Using zeitwerk 2.4.0 remote: Using builder 3.2.4 remote: Using erubi 1.9.0 remote: Using mini_portile2 2.4.0 remote: Using crass 1.0.6 remote: Using rack 2.2.3 remote: Using nio4r 2.5.4 remote: Using websocket-extensions 0.1.5 remote: Using mimemagic 0.3.5 remote: Using mini_mime 1.0.2 remote: Fetching bcrypt 3.1.16 remote: Using msgpack 1.3.3 remote: Using bundler 2.1.4 remote: Using coderay 1.1.3 remote: Fetching orm_adapter 0.5.0 remote: Using method_source 1.0.0 remote: Using thor 1.0.1 remote: Using ffi 1.13.1 remote: Using mysql2 0.5.3 remote: Using puma 3.12.6 remote: Using rails_serve_static_assets 0.0.5 remote: Installing bcrypt 3.1.16 with native extensions remote: Using rails_stdout_logging 0.0.5 remote: Using rb-fsevent 0.10.4 remote: Installing orm_adapter 0.5.0 remote: Using tilt 2.0.10 remote: Using turbolinks-source 5.2.0 remote: Using i18n 1.8.5 remote: Using tzinfo 1.2.7 remote: Using nokogiri 1.10.10 remote: Using rack-test 1.1.0 remote: Using websocket-driver 0.7.3 remote: Using marcel 0.3.3 remote: Using mail 2.7.1 remote: Fetching warden 1.2.9 remote: Installing warden 1.2.9 remote: Using rack-proxy 0.6.5 remote: Using sprockets 3.7.2 remote: Using bootsnap 1.4.9 remote: Using pry 0.13.1 remote: Using rb-inotify 0.10.1 remote: Using rails_12factor 0.0.3 remote: Using turbolinks 5.2.1 remote: Using activesupport 6.0.3.4 remote: Using loofah 2.7.0 remote: Using rails-dom-testing 2.0.3 remote: Using rails-html-sanitizer 1.3.0 remote: Using globalid 0.4.2 remote: Using activemodel 6.0.3.4 remote: Using jbuilder 2.10.1 remote: Using pry-rails 0.3.9 remote: Using sass-listen 4.0.0 remote: Using actionview 6.0.3.4 remote: Using activejob 6.0.3.4 remote: Using activerecord 6.0.3.4 remote: Using sass 3.7.4 remote: Using actionpack 6.0.3.4 remote: Using actioncable 6.0.3.4 remote: Using activestorage 6.0.3.4 remote: Using actionmailer 6.0.3.4 remote: Using railties 6.0.3.4 remote: Using sprockets-rails 3.2.2 remote: Using actionmailbox 6.0.3.4 remote: Using actiontext 6.0.3.4 remote: Using jquery-rails 4.4.0 remote: Using jquery-ui-rails 6.0.1 remote: Using momentjs-rails 2.20.1 remote: Using sass-rails 5.1.0 remote: Using webpacker 4.3.0 remote: Using rails 6.0.3.4 remote: Fetching responders 3.0.1 remote: Using fullcalendar-rails 3.9.0.0 remote: Installing responders 3.0.1 remote: Fetching devise 4.7.3 remote: Installing devise 4.7.3 remote: Bundle complete! 23 Gemfile dependencies, 74 gems now installed. remote: Gems in the groups development and test were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Bundle completed (4.39s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v12.16.2-linux-x64 remote: -----> Installing yarn-v1.22.4 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /tmp/build_a01d20c6/config/application.rb:7) remote: yarn install v1.22.4 remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.1.3: The platform "linux" is incompatible with this module. remote: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". remote: [4/4] Building fresh packages... remote: Done in 29.32s. remote: yarn install v1.22.4 remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.1.3: The platform "linux" is incompatible with this module. remote: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. remote: info fsevents@1.2.13: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". remote: [4/4] Building fresh packages... remote: Done in 5.76s. remote: I, [2020-11-18T10:20:59.540054 #403] INFO -- : Writing /tmp/build_a01d20c6/public/assets/application-a364b696328314e479233efe108d6e52de07b8252360f9ab75cb1b38e06d86a1.js remote: I, [2020-11-18T10:20:59.540577 #403] INFO -- : Writing /tmp/build_a01d20c6/public/assets/application-a364b696328314e479233efe108d6e52de07b8252360f9ab75cb1b38e06d86a1.js.gz remote: Compiling... remote: Compilation failed: remote: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. remote: - configuration.entry should be an non-empty object. remote: -> Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array. remote: remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 064879d2eaa84c861f842b731be2dbff06c406c2 remote: ! remote: ! We have detected that you have triggered a build from source code with version 064879d2eaa84c861f842b731be2dbff06c406c2 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to ideal-self-29792. remote: To https://git.heroku.com/ideal-self-29792.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ideal-self-29792.git'

試したこと

Precompiling assets failed.とかいてあったのでGoogle検索したところログを見なさいという意味だったので、見直したところpushがうまく行っていないまでしか、わかりませんでした。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問