How to use a theme with Redmine 6.0.4 and puma
Added by H W about 1 month ago
Greetings,
I have an otherwise-working Redmine 6.0.4 instance and I am trying to install a theme that is listed as being 6.x compatible. The theme can be loaded if placed in /themes but its css clearly doesn't load when it is selected. When I reviewed the instructions on the Themes wiki page, there is a note that in addition to the change in theme folder location, it is also necessary to serve /themes explicitly and an example for this is given for Apache. What is the example for the default puma server that Redmine uses?
Replies (3)
RE: How to use a theme with Redmine 6.0.4 and puma
-
Added by A G 15 days ago
Hey,
i've the same issue with Zenmine theme and some others.
Redmine try to load application.css
but in fact, in the assets folder, the file is called application-cd9683d5.css
, same file but renamed with a small hash.
This is why the theme is not functionnal.
I wonder why ?
What can be done to solve this issue ?
Disable the hash rename ?
The default theme is working though
Thanks for any clue !
RE: How to use a theme with Redmine 6.0.4 and puma
-
Added by A G 14 days ago
I managed to find a temporary solution.
The issue is caused by ruby fingerprinting files which can be disabled in the file config/environments/production.rb
by adding this line config.assets.digest = false
. It will remove fingerprinting.
I suppose that the correct way to fix the issue is in the hands of theme developers since 6.0.4 introduce the fingerprinting which is a good thing though.
RE: How to use a theme with Redmine 6.0.4 and puma
-
Added by A G 14 days ago
A G wrote in RE: How to use a theme with Redmine 6.0.4 and puma:
The issue is caused by ruby fingerprinting files which can be disabled in the file
config/environments/production.rb
by adding this lineconfig.assets.digest = false
. It will remove fingerprinting.
I forgot to mention, Puma need to be restarted, i retarted the docker image ...