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

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

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

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

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

0回答

642閲覧

herokuでデプロイ作業中のgit push heroku masterでPrecompiling assets failed.エラーが出てしまう。

tsuyoshi-ri

総合スコア5

Heroku

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

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/03/06 07:15

編集2021/03/07 14:31

前提・実現したいこと

Ruby on Railsを使用してアプリを作成中なのですがherokuへgit push heroku masterした際にエラーが発生してしまい、解決できません。
デプロイを完了させてアプリを表示させたいです。
御助力お願いいたします。

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

remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack 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 2.2.11 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.6 remote: -----> Installing dependencies using bundler 2.2.11 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Fetching gem metadata from https://rubygems.org/............
remote: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.3.1: The platform "linux" is incompatible with this module. remote: info "fsevents@2.3.1" 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 " > vue-loader@15.9.6" has unmet peer dependency "css-loader@*". remote: [4/4] Building fresh packages... remote: Done in 33.77s. remote: yarn install v1.22.4 remote: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@2.3.1: The platform "linux" is incompatible with this module. remote: info "fsevents@2.3.1" 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 " > vue-loader@15.9.6" has unmet peer dependency "css-loader@*". remote: [4/4] Building fresh packages... remote: Done in 6.37s.
remote: Compiling... remote: Compilation failed: remote: CLI for webpack must be installed. remote: webpack-cli (https://github.com/webpack/webpack-cli) remote: remote: We will use "yarn" to install the CLI via "yarn add -D webpack-cli". remote: Do you want to install 'webpack-cli' (yes/no): 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 store-manual. remote: To https://git.heroku.com/store-manual.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/store-manual.git'

試してみた事

  • git add .を行い、git commit -m "first commit"を行いgit pushしました。
  • git push heroku <branchname>:mainというエラーが発生。
  • herokuの中の登録しているappを削除し、再度heroku createその後アプリ名を変更した事による整合性を一致させる為、git remote rm herokuを行い、heroku git:remote -aを行いました。

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問