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

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

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

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

Ruby

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

Heroku

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

Q&A

解決済

1回答

580閲覧

herokuにrailsアプリをデプロイしたい

shima0316

総合スコア1

Ruby on Rails 5

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

Ruby

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

Heroku

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

0グッド

0クリップ

投稿2023/04/11 22:36

実現したいこと

cloud9で作成したrailsアプリをherokuにデプロイしたい

前提

PFサイトをherokuにデプロイしたいのですが、git push heroku mainでエラーが出てしまいます

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

かなりの行数なので、関係がありそうなところだけです

該当のソースコード

remote: Bundle completed (80.97s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v16.18.1-linux-x64
remote: -----> Installing yarn-v1.22.19
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: rake aborted!
remote: ArgumentError: wrong number of arguments (given 3, expected 2)

試したこと

エラー名で検索し、引数エラーからローカルでの動きに問題があるかと思いましたが問題なく動きました。
rubyのバージョンは2.6.9を使っています

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

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

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

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

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

Eggpan

2023/04/11 23:14

Gemfileにrubyのバージョンは指定されていますか? 指定がなく、herokuデフォルトのままだと3.xとかが入ったりするケースがあるようです。 pushした際のログが一式あれば何かわかるかもしれません。
shima0316

2023/04/11 23:26

回答ありがとうございます エラーログがこちらです。 Enumerating objects: 16284, done. Counting objects: 100% (16284/16284), done. Compressing objects: 100% (8688/8688), done. Writing objects: 100% (16284/16284), 40.12 MiB | 10.70 MiB/s, done. Total 16284 (delta 6188), reused 16274 (delta 6182), pack-reused 0 remote: Resolving deltas: 100% (6188/6188), done. remote: Updated 23492 paths from 89993b1 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-22 stack remote: -----> Determining which buildpack to use for this app 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 1.17.3 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-3.1.2 remote: -----> Installing dependencies using bundler 1.17.3 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4 remote: Fetching gem metadata from https://rubygems.org/.......... remote: Fetching https://github.com/manfe/refile.git remote: Fetching rake 13.0.6 remote: Installing rake 13.0.6 remote: Fetching thread_safe 0.3.6 remote: Fetching builder 3.2.4 remote: Fetching concurrent-ruby 1.2.2 remote: Fetching minitest 5.18.0 remote: Installing minitest 5.18.0 remote: Installing thread_safe 0.3.6 remote: Installing builder 3.2.4 remote: Installing concurrent-ruby 1.2.2 remote: Fetching erubi 1.12.0 remote: Fetching mini_portile2 2.8.1 remote: Fetching racc 1.6.2 remote: Installing mini_portile2 2.8.1 remote: Installing erubi 1.12.0 remote: Fetching crass 1.0.6 remote: Installing racc 1.6.2 with native extensions remote: Fetching rack 2.2.6.4 remote: Installing crass 1.0.6 remote: Fetching nio4r 2.5.9 remote: Fetching websocket-extensions 0.1.5 remote: Installing rack 2.2.6.4 remote: Installing websocket-extensions 0.1.5 remote: Installing nio4r 2.5.9 with native extensions remote: Fetching mini_mime 1.1.2 remote: Fetching date 3.3.3 remote: Installing mini_mime 1.1.2 remote: Installing date 3.3.3 with native extensions remote: Fetching timeout 0.3.2 remote: Installing timeout 0.3.2 remote: Fetching arel 9.0.0 remote: Installing arel 9.0.0 remote: Fetching marcel 1.0.2 remote: Installing marcel 1.0.2 remote: Fetching execjs 2.8.1 remote: Installing execjs 2.8.1 remote: Fetching bcrypt 3.1.18 remote: Installing bcrypt 3.1.18 with native extensions remote: Fetching msgpack 1.7.0 remote: Installing msgpack 1.7.0 with native extensions remote: Fetching popper_js 1.16.1 remote: Installing popper_js 1.16.1 remote: Fetching method_source 1.0.0 remote: Installing method_source 1.0.0 remote: Fetching thor 1.2.1 remote: Installing thor 1.2.1 remote: Fetching ffi 1.15.5 remote: Installing ffi 1.15.5 with native extensions remote: Fetching tilt 2.1.0 remote: Installing tilt 2.1.0 remote: Using bundler 2.3.7 remote: Fetching coffee-script-source 1.12.2 remote: Installing coffee-script-source 1.12.2 remote: Fetching orm_adapter 0.5.0 remote: Installing orm_adapter 0.5.0 remote: Fetching unf_ext 0.0.8.2 remote: Installing unf_ext 0.0.8.2 with native extensions remote: Fetching http-accept 1.7.0 remote: Installing http-accept 1.7.0 remote: Fetching kaminari-core 1.2.2 remote: Installing kaminari-core 1.2.2 remote: Fetching mime-types-data 3.2023.0218.1 remote: Installing mime-types-data 3.2023.0218.1 remote: Fetching mini_magick 4.12.0 remote: Installing mini_magick 4.12.0 remote: Using ruby2_keywords 0.0.5 remote: Fetching netrc 0.11.0 remote: Fetching pg 1.4.6 remote: Installing netrc 0.11.0 remote: Installing pg 1.4.6 with native extensions remote: Fetching puma 3.12.6 remote: Installing puma 3.12.6 with native extensions remote: Fetching turbolinks-source 5.2.0 remote: Installing turbolinks-source 5.2.0 remote: Fetching tzinfo 1.2.11 remote: Installing tzinfo 1.2.11 remote: Fetching i18n 1.12.0 remote: Installing i18n 1.12.0 remote: Fetching websocket-driver 0.7.5 remote: Installing websocket-driver 0.7.5 with native extensions remote: Fetching rack-test 2.1.0 remote: Installing rack-test 2.1.0 remote: Fetching sprockets 3.7.2 remote: Installing sprockets 3.7.2 remote: Fetching warden 1.2.9 remote: Installing warden 1.2.9 remote: Fetching net-protocol 0.2.1 remote: Fetching rack-protection 2.0.8.1 remote: Installing net-protocol 0.2.1 remote: Installing rack-protection 2.0.8.1 remote: Fetching autoprefixer-rails 10.4.13.0 remote: Fetching uglifier 4.2.0 remote: Installing uglifier 4.2.0 remote: Fetching nokogiri 1.13.10 (x86_64-linux) remote: Installing autoprefixer-rails 10.4.13.0 remote: Installing nokogiri 1.13.10 (x86_64-linux) remote: Fetching coffee-script 2.4.1 remote: Installing coffee-script 2.4.1 remote: Fetching unf 0.1.4 remote: Installing unf 0.1.4 remote: Fetching mime-types 3.4.1 remote: Installing mime-types 3.4.1 remote: Fetching bootsnap 1.16.0 remote: Installing bootsnap 1.16.0 with native extensions remote: Fetching mustermann 1.1.2 remote: Installing mustermann 1.1.2 remote: Fetching turbolinks 5.2.1 remote: Installing turbolinks 5.2.1 remote: Fetching activesupport 5.2.8.1 remote: Installing activesupport 5.2.8.1 remote: Fetching net-imap 0.3.4 remote: Installing net-imap 0.3.4 remote: Fetching net-pop 0.1.2 remote: Installing net-pop 0.1.2 remote: Fetching net-smtp 0.3.3 remote: Installing net-smtp 0.3.3 remote: Fetching domain_name 0.5.20190701 remote: Installing domain_name 0.5.20190701 remote: Fetching loofah 2.20.0 remote: Installing loofah 2.20.0 remote: Fetching sinatra 2.0.8.1 remote: Installing sinatra 2.0.8.1 remote: Fetching rails-dom-testing 2.0.3 remote: Installing rails-dom-testing 2.0.3 remote: Fetching globalid 1.1.0 remote: Installing globalid 1.1.0 remote: Fetching activemodel 5.2.8.1 remote: Installing activemodel 5.2.8.1 remote: Fetching mail 2.8.1 remote: Installing mail 2.8.1 remote: Fetching http-cookie 1.0.5 remote: Installing http-cookie 1.0.5 remote: Fetching rails-html-sanitizer 1.5.0 remote: Installing rails-html-sanitizer 1.5.0 remote: Fetching activejob 5.2.8.1 remote: Fetching activerecord 5.2.8.1 remote: Installing activejob 5.2.8.1 remote: Fetching rest-client 2.1.0 remote: Installing activerecord 5.2.8.1 remote: Fetching actionview 5.2.8.1 remote: Installing actionview 5.2.8.1 remote: Installing rest-client 2.1.0 remote: Fetching sassc 2.4.0 remote: Fetching kaminari-activerecord 1.2.2 remote: Installing sassc 2.4.0 with native extensions remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@46b4178) remote: Fetching actionpack 5.2.8.1 remote: Installing kaminari-activerecord 1.2.2 remote: Fetching jbuilder 2.11.5 remote: Installing jbuilder 2.11.5 remote: Installing actionpack 5.2.8.1 remote: Fetching kaminari-actionview 1.2.2 remote: Installing kaminari-actionview 1.2.2 remote: Fetching refile-mini_magick 0.2.0 remote: Fetching kaminari 1.2.2 remote: Installing kaminari 1.2.2 remote: Fetching actioncable 5.2.8.1 remote: Installing refile-mini_magick 0.2.0 remote: Installing actioncable 5.2.8.1 remote: Fetching actionmailer 5.2.8.1 remote: Installing actionmailer 5.2.8.1 remote: Fetching activestorage 5.2.8.1 remote: Fetching railties 5.2.8.1 remote: Installing activestorage 5.2.8.1 remote: Fetching sprockets-rails 3.4.2 remote: Installing sprockets-rails 3.4.2 remote: Installing railties 5.2.8.1 remote: Fetching coffee-rails 4.2.2 remote: Fetching responders 3.1.0 remote: Installing coffee-rails 4.2.2 remote: Fetching jquery-rails 4.5.1 remote: Installing responders 3.1.0 remote: Fetching rails 5.2.8.1 remote: Installing rails 5.2.8.1 remote: Fetching devise 4.9.1 remote: Installing devise 4.9.1 remote: Installing jquery-rails 4.5.1 remote: Fetching sassc-rails 2.1.2 remote: Fetching font-awesome-sass 5.15.1 remote: Installing sassc-rails 2.1.2 remote: Fetching sass-rails 6.0.0 remote: Fetching bootstrap 4.6.2 remote: Installing sass-rails 6.0.0 remote: Installing bootstrap 4.6.2 remote: Installing font-awesome-sass 5.15.1 remote: Bundle complete! 27 Gemfile dependencies, 94 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 devise: remote: remote: [DEVISE] Please review the [
shima0316

2023/04/11 23:27

remote: [DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration. remote: remote: [changelog] https://github.com/heartcombo/devise/blob/main/CHANGELOG.md remote: [upgrade guide] https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-%5BHotwire-Turbo-integration%5D remote: remote: Bundle completed (80.97s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v16.18.1-linux-x64 remote: -----> Installing yarn-v1.22.19 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: ArgumentError: wrong number of arguments (given 3, expected 2) remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/static.rb:111:in `initialize' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:37:in `new' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:37:in `build' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `block in build' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `each' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `inject' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `build' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:510:in `block in app' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:506:in `synchronize' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:506:in `app' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `instance_exec' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `run' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:61:in `block in run_initializers' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:60:in `run_initializers' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:361:in `initialize!' remote: /tmp/build_53d01077/config/environment.rb:5:in `<main>' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_53d01077/vendor/bundle/ruby/3.1.0/gems/sprockets-rails-3.4.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: 333c808312576b1477690f6a2bd067dcf2b35661 remote: ! remote: ! We have detected that you have triggered a build from source code with version 333c808312576b1477690f6a2bd067dcf2b35661 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 sokutoreapppf. remote: To https://git.heroku.com/sokutoreapppf.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/sokutoreapppf.git' rubyは2.6.9を指定しています。
shima0316

2023/04/11 23:27

source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.2.5' # Use sqlite3 as the database for Active Record # gem 'sqlite3', '~> 1.3.6' gem 'sqlite3', groups: %w(test development), require: false gem 'pg', groups: %w(production), require: false ruby '2.6.9' # Use Puma as the app server gem 'puma', '~> 3.11' # Use SCSS for stylesheets gem "sass-rails", "~> 6" # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'mini_racer', platforms: :ruby # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.2' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.5' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use ActiveStorage variant # gem 'mini_magick', '~> 4.8' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.1.0', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '>= 3.0.5', '< 3.2' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' # Easy installation and use of chromedriver to run system tests with Chrome gem 'chromedriver-helper' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] gem 'devise' gem "refile", require: "refile/rails", github: 'manfe/refile' gem "refile-mini_magick" gem 'kaminari','~> 1.2.1' gem 'bootstrap', '~> 4.5' gem 'jquery-rails' gem 'font-awesome-sass', '~> 5.13' group :production do gem 'pg' end gem 'sassc'
Eggpan

2023/04/11 23:38

remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Installing bundler 1.17.3 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-3.1.2 とあるので、Gemfileの指定が効いてなさそうですね・・。 ログについては質問を編集して、コードブロックとしていれていただけると回答がつきやすとおもいます。
guest

回答1

0

ベストアンサー

Building on the Heroku-22 stack とログ上ではなっていますが、最新stackにおいてruby 2.6は利用出来ず、2.7.8 以上を指定する必要があります。

また、rails 5.2はruby2.7をサポートしていません。

  • railsとrubyを両方アップグレードする
  • herokuのstackを前のバージョンに変更する
    • heroku stack:set heroku-20 などで変更可能です

いずれかを検討してください。

参考:
https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
https://devcenter.heroku.com/ja/articles/upgrading-to-the-latest-stack
https://github.com/rails/rails/issues/38426

投稿2023/04/12 00:02

Eggpan

総合スコア2764

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

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

shima0316

2023/04/12 08:25

ご教授ありがとうございます! herokuのstackを20にしてみたとろ、同じく ArgumentError: wrong number of arguments (given 3, expected 2)が表示されてしまいました...
shima0316

2023/04/12 08:30

``` Enumerating objects: 16287, done. Counting objects: 100% (16287/16287), done. Compressing objects: 100% (8691/8691), done. Writing objects: 100% (16287/16287), 40.12 MiB | 10.96 MiB/s, done. Total 16287 (delta 6190), reused 16273 (delta 6182), pack-reused 0 remote: Resolving deltas: 100% (6190/6190), done. remote: Updated 23492 paths from 0a34be7 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Determining which buildpack to use for this ap 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 1.17.3 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-3.1.2 remote: -----> Installing dependencies using bundler 1.17.3 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4 remote: Your Gemfile lists the gem pg (>= 0) more than once. remote: You should probably keep only one of them. remote: Remove any duplicate entries and specify the gem only once. remote: While it's not a problem now, it could cause errors if you change the version of one of them later. remote: Fetching gem metadata from https://rubygems.org/.......... remote: Fetching https://github.com/manfe/refile.git remote: Fetching rake 13.0.6 remote: Installing rake 13.0.6 remote: Fetching thread_safe 0.3.6 remote: Fetching builder 3.2.4 remote: Fetching concurrent-ruby 1.2.2 remote: Fetching minitest 5.18.0 remote: Installing builder 3.2.4 remote: Installing thread_safe 0.3.6 remote: Installing concurrent-ruby 1.2.2 remote: Installing minitest 5.18.0 remote: Fetching erubi 1.12.0 remote: Fetching mini_portile2 2.8.1 remote: Installing mini_portile2 2.8.1 remote: Fetching racc 1.6.2 remote: Installing erubi 1.12.0 remote: Fetching crass 1.0.6 remote: Fetching rack 2.2.6.4 remote: Installing racc 1.6.2 with native extensions remote: Installing crass 1.0.6 remote: Fetching nio4r 2.5.9 remote: Fetching websocket-extensions 0.1.5 remote: Installing rack 2.2.6.4 remote: Installing websocket-extensions 0.1.5 remote: Installing nio4r 2.5.9 with native extensions remote: Fetching mini_mime 1.1.2 remote: Installing mini_mime 1.1.2 remote: Fetching date 3.3.3 remote: Installing date 3.3.3 with native extensions remote: Fetching timeout 0.3.2 remote: Installing timeout 0.3.2 remote: Fetching arel 9.0.0 remote: Installing arel 9.0.0 remote: Fetching marcel 1.0.2 remote: Installing marcel 1.0.2 remote: Fetching execjs 2.8.1 remote: Installing execjs 2.8.1 remote: Fetching bcrypt 3.1.18 remote: Installing bcrypt 3.1.18 with native extension remote: Fetching msgpack 1.7.0 remote: Installing msgpack 1.7.0 with native extension remote: Fetching popper_js 1.16.1 remote: Installing popper_js 1.16.1 remote: Fetching method_source 1.0.0 remote: Installing method_source 1.0.0 remote: Fetching thor 1.2.1 remote: Installing thor 1.2.1 remote: Fetching ffi 1.15.5 remote: Installing ffi 1.15.5 with native extensions remote: Fetching tilt 2.1.0 remote: Installing tilt 2.1.0 remote: Using bundler 2.3.7 remote: Fetching coffee-script-source 1.12.2 remote: Installing coffee-script-source 1.12.2 remote: Fetching orm_adapter 0.5.0 remote: Installing orm_adapter 0.5.0 remote: Fetching unf_ext 0.0.8.2 remote: Installing unf_ext 0.0.8.2 with native extensions remote: Fetching http-accept 1.7.0 remote: Installing http-accept 1.7.0 remote: Fetching kaminari-core 1.2.2 remote: Installing kaminari-core 1.2.2 remote: Fetching mime-types-data 3.2023.0218.1 remote: Installing mime-types-data 3.2023.0218.1 remote: Fetching mini_magick 4.12.0 remote: Installing mini_magick 4.12.0 remote: Using ruby2_keywords 0.0.5 remote: Fetching netrc 0.11.0 remote: Installing netrc 0.11.0 remote: Fetching pg 1.4.6 remote: Installing pg 1.4.6 with native extensions remote: Fetching puma 3.12.6 remote: Installing puma 3.12.6 with native extensions remote: Fetching turbolinks-source 5.2.0 remote: Installing turbolinks-source 5.2.0 remote: Fetching tzinfo 1.2.11 remote: Installing tzinfo 1.2.11 remote: Fetching i18n 1.12.0 remote: Installing i18n 1.12.0 remote: Fetching websocket-driver 0.7.5 remote: Installing websocket-driver 0.7.5 with native extensions remote: Fetching rack-test 2.1.0 remote: Installing rack-test 2.1.0 remote: Fetching sprockets 3.7.2 remote: Installing sprockets 3.7.2 remote: Fetching warden 1.2.9 remote: Installing warden 1.2.9 remote: Fetching rack-protection 2.0.8.1 remote: Installing rack-protection 2.0.8.1 remote: Fetching net-protocol 0.2.1 remote: Installing net-protocol 0.2.1 remote: Fetching autoprefixer-rails 10.4.13.0 remote: Installing autoprefixer-rails 10.4.13.0 remote: Fetching uglifier 4.2.0 remote: Installing uglifier 4.2.0 remote: Fetching nokogiri 1.13.10 (x86_64-linux) remote: Fetching coffee-script 2.4.1 remote: Installing coffee-script 2.4.1 remote: Fetching bootsnap 1.16.0 remote: Installing bootsnap 1.16.0 with native extensions remote: Installing nokogiri 1.13.10 (x86_64-linux) remote: Fetching mime-types 3.4.1 remote: Installing mime-types 3.4.1 remote: Fetching mustermann 1.1.2 remote: Installing mustermann 1.1.2 remote: Fetching unf 0.1.4 remote: Installing unf 0.1.4 remote: Fetching turbolinks 5.2.1 remote: Installing turbolinks 5.2.1 remote: Fetching activesupport 5.2.8.1 remote: Installing activesupport 5.2.8.1 remote: Fetching net-pop 0.1.2 remote: Installing net-pop 0.1.2 remote: Fetching net-smtp 0.3.3 remote: Installing net-smtp 0.3.3 remote: Fetching net-imap 0.3.4 remote: Installing net-imap 0.3.4 remote: Fetching loofah 2.20.0 remote: Installing loofah 2.20.0 remote: Fetching sinatra 2.0.8.1 remote: Installing sinatra 2.0.8.1 remote: Fetching domain_name 0.5.20190701 remote: Installing domain_name 0.5.20190701 remote: Fetching rails-dom-testing 2.0.3 remote: Fetching globalid 1.1.0 remote: Installing rails-dom-testing 2.0.3 remote: Fetching activemodel 5.2.8.1 remote: Installing activemodel 5.2.8.1 remote: Installing globalid 1.1.0 remote: Fetching mail 2.8.1 remote: Fetching rails-html-sanitizer 1.5.0 remote: Installing rails-html-sanitizer 1.5.0 remote: Installing mail 2.8.1 remote: Fetching http-cookie 1.0.5 remote: Installing http-cookie 1.0.5 remote: Fetching activejob 5.2.8.1 remote: Installing activejob 5.2.8.1 remote: Fetching actionview 5.2.8.1 remote: Fetching activerecord 5.2.8.1 remote: Installing actionview 5.2.8.1 remote: Installing activerecord 5.2.8.1 remote: Fetching rest-client 2.1.0 remote: Fetching actionpack 5.2.8.1 remote: Installing rest-client 2.1.0 remote: Installing actionpack 5.2.8.1 remote: Fetching jbuilder 2.11.5 remote: Installing jbuilder 2.11.5 remote: Fetching kaminari-actionview 1.2.2 remote: Installing kaminari-actionview 1.2.2 remote: Fetching sassc 2.4.0 remote: Fetching kaminari-activerecord 1.2.2 remote: Fetching actioncable 5.2.8.1 remote: Installing kaminari-activerecord 1.2.2 remote: Installing actioncable 5.2.8.1 remote: Fetching actionmailer 5.2.8.1 remote: Installing actionmailer 5.2.8.1 remote: Fetching activestorage 5.2.8.1 remote: Installing sassc 2.4.0 with native extensions remote: Fetching railties 5.2.8.1 remote: Installing railties 5.2.8.1 remote: Installing activestorage 5.2.8.1 remote: Fetching sprockets-rails 3.4.2 remote: Installing sprockets-rails 3.4.2 remote: Fetching kaminari 1.2.2 remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@46b4178) remote: Fetching coffee-rails 4.2.2 remote: Installing kaminari 1.2.2 remote: Installing coffee-rails 4.2.2 remote: Fetching jquery-rails 4.5.1 remote: Fetching responders 3.1.0 remote: Installing responders 3.1.0 remote: Fetching rails 5.2.8.1 remote: Installing jquery-rails 4.5.1 remote: Installing rails 5.2.8.1 remote: Fetching refile-mini_magick 0.2.0 remote: Fetching devise 4.9.1 remote: Installing devise 4.9.1 remote: Installing refile-mini_magick 0.2.0 remote: Fetching sassc-rails 2.1.2 remote: Fetching font-awesome-sass 5.15.1 remote: Installing sassc-rails 2.1.2 remote: Fetching sass-rails 6.0.0 remote: Fetching bootstrap 4.6.2 remote: Installing sass-rails 6.0.0 remote: Installing bootstrap 4.6.2 remote: Installing font-awesome-sass 5.15.1 remote: Bundle complete!
shima0316

2023/04/12 08:31

remote: Bundle complete! 28 Gemfile dependencies, 94 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 devise: remote: remote: [DEVISE] Please review the [changelog] and [upgrade guide] for more info on Hotwire / Turbo integration. remote: remote: [changelog] https://github.com/heartcombo/devise/blob/main/CHANGELOG.md remote: [upgrade guide] https://github.com/heartcombo/devise/wiki/How-To:-Upgrade-to-Devise-4.9.0-%5BHotwire-Turbo-integration%5D remote: remote: Bundle completed (81.91s) remote: Cleaning up the bundler cache. remote: -----> Installing node-v16.18.1-linux-x64 remote: -----> Installing yarn-v1.22.19 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: ArgumentError: wrong number of arguments (given 3, expected 2) remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/static.rb:111:in `initialize' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:37:in `new' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:37:in `build' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `block in build' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `each' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `inject' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/actionpack-5.2.8.1/lib/action_dispatch/middleware/stack.rb:101:in `build' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:510:in `block in app' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:506:in `synchronize' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/engine.rb:506:in `app' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `instance_exec' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `run' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:61:in `block in run_initializers' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:60:in `run_initializers' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:361:in `initialize!' remote: /tmp/build_0c1f937b/config/environment.rb:5:in `<main>' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/railties-5.2.8.1/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_0c1f937b/vendor/bundle/ruby/3.1.0/gems/sprockets-rails-3.4.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 sokutoreapppf. remote: To https://git.heroku.com/sokutoreapppf.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/sokutoreapppf.git' こちらlogになります。
Eggpan

2023/04/12 08:56

heroku-18でも変わりないでしょうか? また、 cat Gemfile.lock | grep -A 2 RUBY では2.6.9が表示される状態ですか? 依然として3.1.2が利用されているようなので、コミットの内容も確認してみてください。
shima0316

2023/04/12 14:39

heroku-18にてデプロイ成功しました!! 本当にありがとうございます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.47%

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

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

質問する

関連した質問