Added by Moutonjr NotApplicable over 5 years ago
Hi board,
I made a reply on an old topic but indeed this needs a proper topic.
Is there a way and (better!) a documentation for:
openproject config:set
? or a fine way to get it somewhat?openproject configure
non-interactively, i.e. without the dialog
part? No problem with sourcing/tuning files and adding env variables.Thanks you team!
Replies (2)
There's https://github.com/opf/openproject/blob/dev/lib/open_project/configuration.rb that has a list of all default ENV / configuration flags that can be set with
OPENPROJECT_<setting>
, where setting is the key in that file with each underscore replaced by two (because a single underscore is mapped to an object since Redmine times - don't ask me why).There's https://github.com/opf/openproject/blob/dev/docs/configuration/configuration.md that tries to document some of these things but is clearly lacking some of the options.
Regarding your second question. As soon as you have
/etc/openproject/installer.dat
set with all the options neededopenproject configure
will not be raising any dialogs. However this will be brittle when an upgrade introduces a new variable there, it needs to be added beforehand. Maybe a packager option for non-interactive configuration would be useful here.I created this as an idea task here: https://community.openproject.com/wp/31287
Best,
Oliver
I let this here if someone stumbles upon the case: VERSION 10 env vars + default values:
so to override if I understood correctly:
openproject config:set 'OPENPROJECT_GRAVATAR__FALLBACK__IMAGE="gravatar.jpg"