Read more

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

Tobias Kraze
August 21, 2019Software engineer at makandra GmbH

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.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

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
Posted by Tobias Kraze to makandra dev (2019-08-21 10:31)