Automatically sync Custom Fields and Property Setters in Frappe sites
Create Custom Fields and Property Setters as usual through Customize Form / Form Builder / respective DocTypes. The corresponding files should get auto-created in the following directory by default:
[bench-name]/sites/[site-name]/customizations/
You can also specify a custom directory for syncing customizations by setting the path to that directory in a site config called customizations_dir
. This path must be either absolute or relative to the site's bench directory. For example:
bench --site abc.localhost set-config customizations_dir apps/abc/customizations
Want to export existing customizations? Fret not, you can just run the following command:
bench --site [your-site-name] sc-export
Ensure that this app is installed and the customizations directory is present. Customizations should get synced automatically during DB migration.
Special thanks to @filtersource and @rtCamp for sponsoring the development of this app!
MIT