We are in the trouble with rails 5.1.x, because of kuroko2 try to find application.css on the worker process, works on the other instance which does not have assets.
Proposal
Disable layout on mail, and does not use assets from asset pipeline.
As you can see above, all mail views were designed to work well without layout and assets from asset pipeline.
Furthermore, including assets is not working ;) the mail will be rendered like:
Background
We are in the trouble with rails 5.1.x, because of kuroko2 try to find
application.css
on the worker process, works on the other instance which does not have assets.Proposal
Disable layout on mail, and does not use assets from asset pipeline.
Here is all mail views.
and image will be attached like:
https://github.com/cookpad/kuroko2/blob/43ecd9711f256b4229391e8f244eee7013fc44bb/app/mailers/kuroko2/notifications.rb#L13
As you can see above, all mail views were designed to work well without layout and assets from asset pipeline. Furthermore, including assets is not working ;) the mail will be rendered like:
Hence, Just let it be intended.
@cookpad/dev-infra Please review this 🕶