I’ve changed a lot of code in my Zammad installation. Changes to .coffee templates, changes to .rb files, etc.
I just found out that all of my changes have been overwritten in my production environment with the defaults.
I suppose this happens after the service restarts and it generates codes files again. But I cannot figure out where the original code files then come from.
How do I adapt my Zammad properly without rebuilds / updates overwriting my work?
Generally, if you change source code files from Zammad, your changes will be overwritten during an upgrade. You can re-apply them if you need (at your own danger etc etc). Docker based installations will kill your changes upon every restart.
Package your changes into an addon, it will reduce your pain.
How would I go about creating an addon that can enhance the config and makes changes to coffee templates?
examples of changes I need to have and be preserved after upgrades:
CSP changes I made in ./config/initializers/content_security_policy.rb
Changed render logic in ./assets/javascripts/app/controllers/article_view/item.coffee
Additional styling in ./app/assets/stylesheets/zammad.scss