applying the patch
-
Hello, many small changes to redmine system are distributed via so called patches.
is it possible to apply such a patch to Cloudron instance?the patch is usually applied by running patch command in the folder which is located in app/code/ - which is unfortunately a read-only area for us.
can we have maybe a folder, same way like we have for plugins, where these patch files could be copied into and applied somehow? -
@admyun Interesting, I wasn't aware of such a system. Are these usually bugs/features/tweaks that will come in a future release or never will be merged upstream?
The
/app/code
is readonly at runtime, so one cannot apply patches at runtime either. So, we have to think of some other solution. -
Hello, im not so aware of ruby and way how things are processed in redmine db so I cannot really correctly reply, but you can easily get details when googling the redmine forum. To my understanding the patches are some sort of code pieces which allows to change how db data are processed for redmine frontend, it can add things on-the-fly, and allow to modify and customize or even provide additional function without need to ad more DB tables. I see them like an alternative to classic database view tables definitions.
It would be great if you could look into it and see how to make it applicable in cloudron as well -
@robi the code is readonly at runtime, so not sure how we cannot apply patches on startup.
I think we have to investigate more on what these patches are before fixing the package. If this is just arbitrary user patches, I am afraid we cannot support it since such things don't work well with our update model. Obviously, one can build their own custom redmine package if they desire such patches.