renderでrails apiがエラーになる

前提

ここに質問の内容を詳しく書いてください。

RailsのAPIで作成し、Renderにデプロイしたいと考えています。
Github
https://github.com/takoyan33/rails-next-backend/tree/main

参考記事

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

デプロイ時にエラーが発生します。

エラーメッセージ Jan 14 10:51:21 PM Gems in the groups 'development' and 'test' were not installed. Jan 14 10:51:21 PM Bundled gems are installed into `/opt/render/project/.gems` Jan 14 10:51:23 PM rake aborted! Jan 14 10:51:23 PM Don't know how to build task 'assets:precompile' (See the list of available tasks with `rake --tasks`) Jan 14 10:51:23 PM /opt/render/project/.gems/ruby/2.6.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' Jan 14 10:51:23 PM /opt/render/project/.gems/bin/bundle:113:in `load' Jan 14 10:51:23 PM /opt/render/project/.gems/bin/bundle:113:in `<main>' Jan 14 10:51:23 PM (See full trace by running task with --trace) Jan 14 10:51:24 PM rake aborted! Jan 14 10:51:24 PM Don't know how to build task 'assets:clean' (See the list of available tasks with `rake --tasks`) Jan 14 10:51:24 PM /opt/render/project/.gems/ruby/2.6.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' Jan 14 10:51:24 PM /opt/render/project/.gems/bin/bundle:113:in `load' Jan 14 10:51:24 PM /opt/render/project/.gems/bin/bundle:113:in `<main>' Jan 14 10:51:24 PM (See full trace by running task with --trace) Jan 14 10:51:24 PM ==> Build failed 😞 Jan 14 10:51:24 PM ==> Generating container image from build. This may take a few minutes...

Don't know how to build task 'assets:clean'とDon't know how to build task 'assets:precompile'
がエラーだと考えています。

イメージ説明

ですが調べてもうまく進まず分からない感じです。
普通のRailsだとRenderにデプロイできた形です。
よろしくお願いします。

試したこと

https://www.reddit.com/r/rails/comments/y3c7tg/rails_6_api_only_app_deployment_error_rake/

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

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

source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.6.5' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' gem 'rails', '~> 6.1.4', '>= 6.1.4.1' # Use sqlite3 as the database for Active Record gem 'sqlite3', '~> 1.4' # Use Puma as the app server gem 'puma', '~> 5.0' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder # gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use Active Storage variant # gem 'image_processing', '~> 1.2' # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.4', require: false # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem 'rack-cors' 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 gem 'listen', '~> 3.3' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

コメントを投稿

0 コメント