helm
helm copied to clipboard
Mount assets on workers
Description of the issue
Sending PDF mails didn't work using the default compose.yml configuration. See: https://github.com/frappe/frappe/issues/14177
That was caused by the fact that the assets volume was not shared with the worker services.
Context information (for bug reports)
Steps to reproduce the issue
- Start a Frappe config using the default
compose.yml
- Set-up e-mail domain and default e-mail account configuration
- Send a DocType using e-mail
Observed result
Errors appear in frappe error logs about missing asset (website.bundle.css
).
Checked inside the conainer and the sites/assets folder was empty
Mail was not sent
Expected result
No errors, Mail sent
Solution
Mount the assets on the workers
x-backend-defaults: &backend_defaults
<<: *depends_on_configurator
volumes:
- sites:/home/frappe/frappe-bench/sites
- assets:/home/frappe/frappe-bench/sites/assets
please send a PR.
note: It also needs to be changed for helm chart.
I'll change it some time, no ETA.