Fix for "Rails assets manifest file not found" in Capistrano deploy
If you use webpacker in your Rails application, and you have completely disabled Sprockets, you might get the following error when trying to deploy: Rails assets manifest file not found
. This happens inside the deploy:assets:backup_manifest
task.
This task comes from capistrano-rails Show archive.org snapshot . It is build for Sprockets and does not work with Webpacker out of the box.
Solution
Configure capistrano-rails to work with Webpacker
Alternative
If you are using capistrano-rails, but don't want to configure it for Webpacker, you can as well wipe the task with:
# config/deploy.rb
Rake::Task["deploy:assets:backup_manifest"].clear_actions