Fix for "Rails assets manifest file not found" in Capistrano deploy

Updated . Posted . Visible to the public.

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
Profile picture of Tobias Kraze
Tobias Kraze
Last edit
Dominik Schöler
License
Source code in this card is licensed under the MIT License.
Posted by Tobias Kraze to makandra dev (2019-08-21 08:31)