Jörg, I spent a bunch of time playing with various test installations and rewrote sections of the config files and the documentation.
https://salsa.debian.org/ruby-team/redmine/-/commit/ c8c07c020ebaef2cc2e067fc6eb0fe8f2cb2e5d7 There is one typo with the word “sudo” I have already fixed for a future upload. Let me know if you think there is anything else that needs to be corrected. On Tuesday, April 1, 2025 6:31:37 AM Mountain Standard Time Jörg- Volker Peetz wrote: > Hi Soren, > > in my last mail I missed two things, so I have two corrections to > make: > Soren Stoutner wrote on 31/03/2025 21:50: > > Jörg-Volker > > > > On Saturday, March 29, 2025 3:59:22 AM Mountain Standard Time > > Jörg- > > > > Volker Peetz wrote: > >>> I have added this information to README.Debian. > >>> > >>> https://salsa.debian.org/ruby-team/redmine/-/blob/master/debian/ > >>> README.Debian?ref_type=heads#L43-55 > >> > >> Yes, I used your hint and refined it a little bit: > >> > >> First, the old assets have to be removed: > >> # rm -rf /var/cache/redmine/default/public/assets/* > > In the assets directory is at least one dot file (.manifest.json). > Maybe, better do > > (cd /var/cache/redmine/default/public ; rm -rf assets ; \ > mkdir -m 755 assets ; chown www-data: assets) > > >> then rebuild the assets, taking some wisdom from the > >> > >> redmine.postinst script: > >> # su -s <REDMINE_CURRENT_USER> /bin/sh -c "cd > >> /usr/share/redmine > >> > >> ; REDMINE_INSTANCE=<INSTANCE> bundle exec rake assets:precompile > >> RAILS_ENV="production" RAILS_RELATIVE_URL_ROOT=/<SUB-URI>" > > I placed the switch '-s' wrong and maybe, for clarity the arguments > should be reordered. The following works: > > su <REDMINHE_CURRENT_USER> -s /bin/sh -c \ > "cd /usr/share/redmine ; REDMINE_INSTANCE=<INSTANCE> \ > RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/<SUB-URI> \ > bundle exec rake assets:precompile" > > And it could be added: > > """ > Alternatively, run the following command to configure the assets > with alias: > > service <REDMINE> restart > > which makes use of the fact that by default, Redmine automatically > recompiles assets in production mode when the application is (re-) > started. """ > > <snip> > > Regards, > Jörg. -- Soren Stoutner [email protected]
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
