1

After assets: precompile fails when compiling the webpacker pack locally, Capistrano continues with the next steps of the deployment. Resulting in the application being deployed with the Javascript files missing.

Is there something special that has to be done in the locally run tasks so Capistrano exits without running the following tasks? Or is it a problem from webpacker that is not raising an exception?

I'm precompiling the assets locally with this task:

run_locally do
  execute "RAILS_ENV=production bundle exec rake 'assets:clean'"
  execute "RAILS_ENV=production bundle exec rake 'assets: precompile'"
end
Nilesh R Patel
  • 697
  • 7
  • 17
jonfer
  • 1,524
  • 2
  • 14
  • 23

0 Answers0