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

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

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

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

Heroku

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

GitHub

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

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Q&A

0回答

326閲覧

herokuにデプロイできない

Superlounge1998

総合スコア15

Ruby on Rails 5

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

Heroku

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

GitHub

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

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

0グッド

0クリップ

投稿2022/11/05 06:29

前提

Raspberry Pi実装したwebアプリケーションをherokuにデプロイしたいのですが、エラーにハマって抜け出せません。

実現したいこと

  • herokuにデプロイ

・ruby 2.5.5
・Rails 5.1.7
・Raspberry Pi Model 4
・git version 2.20.1
・heroku/7.65.0 linux-arm node-v14.19.0

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

$ git push heroku main 中略 remote: Bundle complete! 25 Gemfile dependencies, 89 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 (95.53s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v16.13.1-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead. remote: rake aborted! remote: ArgumentError: wrong number of arguments (given 3, expected 2) remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:109:in `initialize' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:35:in `new' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:35:in `build' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:99:in `block in build' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:99:in `each' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:99:in `inject' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:99:in `build' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/engine.rb:508:in `block in app' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/engine.rb:504:in `synchronize' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/engine.rb:504:in `app' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/application/finisher.rb:45:in `block in <module:Finisher>' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `instance_exec' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `run' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/initializable.rb:59:in `block in run_initializers' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/initializable.rb:58:in `run_initializers' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/application.rb:353:in `initialize!' remote: /tmp/build_1d9a85b0/config/environment.rb:5:in `<top (required)>' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/application.rb:329:in `require_environment!' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.0/gems/railties-5.1.7/lib/rails/application.rb:445:in `block in run_tasks_blocks' remote: /tmp/build_1d9a85b0/vendor/bundle/ruby/3.1.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: Verifying deploy... remote: remote: ! Push rejected to activitypub-receiver. remote: To https://git.heroku.com/{リポジトリ}.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/{リポジトリ}.git'

該当のソースコード

remote: ArgumentError: wrong number of arguments (given 3, expected 2)

に問題があるのでは?と思うのですが、どこをどう直せばいいのかがわからず、苦戦しています。

試したこと

https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39
を参考にさせていただいていますが、詰まってしまいました。

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

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

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

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

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

no1knows

2022/11/05 11:48

まずは DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker) というキーワードで検索してみてはいかがでしょうか?
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問