Content
Set up Managed Repository
Added by Michael J 11 months ago
Hello.
I am looking to set up a managed git repository inside of a new installation of OpenProject 13.1.2 running on Ubuntu 22.04.3. Following the repository integration documentation here: https://www.openproject.org/docs/installation-and-operations/configuration/repositories/, it seems like this should be possible. This article warns that it is a good bit out of date, so using the advanced configuration guide https://www.openproject.org/docs/installation-and-operations/configuration/ to fill in some of the blanks, here is what I have tried:
The repository documentation says that managed repositories have to be manually enabled by adding an entry to the configuration.yml
file. The advanced config article warns that this file has been deprecated, so I have not attempted to make any changes there. Instead, looking at the contents of configuration.yml
, I can see that the setting I'm looking for references a GIT_REPOSITORIES
environment variable. Following the configuration article, using the command openproject config
I see that this variable is not set. I then created the /srv/repositories/git
directory and set the variable using sudo openproject config:set GIT_REPOSITORIES=/srv/repositories/git
. (I doubt that there's anything special about this particular file path, I just thought it made the most sense to use the same path that was used in the example). After that, running openproject config
again, I can see that this variable has indeed been updated. So far, so good.
Then the advanced config article says that after changing a variable, the sudo openproject configure
command must be run, so I do that. Looking through the output of this command, I see No repositories have been configured. Skipping configuration.
Afterwards, running openproject config
shows that the GIT_REPOSITORIES
variable has been reset back to its original blank value. And of course, there was no noticeable change inside the application.
I'm sure there must be something I'm missing here, but I've gone through all of the documentation I can find, and I have not found any solution. Any insight that someone more familiar with this process might be able to provide to help me out would be greatly appreciated.
Thank you.