I am using capistrano to deploy a rails 7.0.4.3 app. When I run cap production deploy
the service stops at this step:
deploy:assets:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
producing this error
01 rake aborted!
01 Sprockets::FileNotFound: couldn't find file 'trix/dist/trix' with type 'text/css'
01 Checked in these paths:
01 /home/deploy/dynamic_performance/releases/20230530181802/app/assets/config
01 /home/deploy/dynamic_performance/releases/20230530181802/app/assets/images
01 /home/deploy/dynamic_performance/releases/20230530181802/app/assets/stylesheets
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/tailwindcss-rails-0.3.3/app/assets/fonts
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/tailwindcss-rails-0.3.3/app/assets/stylesheets
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/actiontext-7.0.4.3/app/assets/javascripts
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/actiontext-7.0.4.3/app/assets/stylesheets
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/actioncable-7.0.4.3/app/assets/javascripts
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/activestorage-7.0.4.3/app/assets/javascripts
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/actionview-7.0.4.3/lib/assets/compiled
01 /home/deploy/dynamic_performance/shared/bundle/ruby/3.2.0/gems/turbolinks-source-5.2.0/lib/assets/javascripts
.... truncated for brevity
I've read other post which say to run yarn install --check-files
and rails action_text:install
but that does not help. Action text works fine when I run rails s
locally. How do I fix this error and compile my assets properly?