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

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

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

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

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

GitHub

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

Ruby on Rails

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

Q&A

2回答

539閲覧

Git push heroku masterが通らない!!!!

yukikiti

総合スコア1

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

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

GitHub

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

Ruby on Rails

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

0グッド

0クリップ

投稿2021/01/12 17:38

RailsのWEBアプリで、更新の際にエラーが出てわからなくなってしまい、一度アプリを削除しました。
その後新たにこちらの記事を参考に新しくデプロイしようとしたのですが

Git push heroku master

が通りません。

Precompiling assets failed. ``` だけでなく、 ```ここに言語を入力 Please check your Rails app・・・ ``` のようなものもあったかな?となっていてもう何をすればよいのかもわかりません。 どなたか助けてください 以下エラー文 ``` >git push heroku master Enumerating objects: 458, done. Counting objects: 100% (458/458), done. Delta compression using up to 8 threads 省略 remote: Installing sass-rails 5.1.0 remote: Fetching devise 4.7.3 remote: Installing devise 4.7.3 remote: Fetching devise-i18n 1.9.2 remote: Installing devise-i18n 1.9.2 remote: Bundle complete! 26 Gemfile dependencies, 87 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: Post-install message from sass: remote: remote: Ruby Sass has reached end-of-life and should no longer be used. remote: remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new remote: primary implementation: https://sass-lang.com/install remote: remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the remote: sassc gem: https://github.com/sass/sassc-ruby#readme remote: remote: * For more details, please refer to the Sass blog: remote: https://sass-lang.com/blog/posts/7828841 remote: remote: Bundle completed (52.59s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v12.16.2-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed. remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/devise-4.7.3/lib/devise/omniauth.rb:12:in `<main>' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/devise-4.7.3/lib/devise.rb:443:in `omniauth' remote: /tmp/build_a7cb3f54/config/initializers/devise.rb:284:in `block in <main>' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/devise-4.7.3/lib/devise.rb:307:in `setup' remote: /tmp/build_a7cb3f54/config/initializers/devise.rb:11:in `<main>' 省略 remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/railties-5.2.4.4/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_a7cb3f54/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define' remote: Tasks: TOP => environment remote: (See full trace by running task with --trace) 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: 6159f136f084e5ff7b4fcafe010960ab22e92220 remote: ! remote: ! We have detected that you have triggered a build from source code with version 6159f136f084e5ff7b4fcafe010960ab22e92220 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 teterako-production. remote: To https://git.heroku.com/teterako-production.git ! [remote rejected] master -> master (pre-receive hook declined) ```

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

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

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

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

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

guest

回答2

0

私は日本人ユーザーではありません
これはグーグルで翻訳されています
今日も同じ問題があります

You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed.

OmniAuth 1/11に2.0.0に更新
gemfileにgem'omniauth '、"1.9.1"を追加しました
問題を解決できます
あなたを助けることを願っています

投稿2021/01/13 18:53

RyanLee

総合スコア2

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

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

0

答え書いてありますやん……。

remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: !

投稿2021/01/12 18:50

A_kirisaki

総合スコア2853

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

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

yukikiti

2021/01/13 01:27

ありがとうございます。 そう思い git branch --contains=HEADをつかってブランチ名をmasterと確認しgit push heroku master をしたのですが、うまくいきませんでした。 同じようなエラーが出ました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問