Closed pkiraly closed 3 months ago
What are you refering to as "git connection feature". Does classes/Utils/GitVersion.php
trigger the error? The error could be catched if no git information can be retrieved for whatever reason. Maybe adding 2>/dev/null
already helps.
Maybe I wrongly name the phenomenon, but the effect is simple: every page load generates this kind of output into the Apache error log. The problem is www-data can not read these information from git, AND it copies the part of Git help message to the log.
The feature will be quite useful, once we figured out how to set up directories properly.
The flag I sugeest is called extractGitVersion
, and by default is true
, so the workflow of your instance will not change.
Adding more configuration options makes the application more complicated and does not fix the issue. It should just
The current fix does not turn off error messages but it turns of the whole feature. This is a temporary solution so keep this issue open.
Yes, my intention was to introduce it until we can fix communication between www-data and git without any side effect.
The purpose of the git feature is to show which version of qa-catalouge-web is running. Maybe better add a configuration field to show an explicit version given as plain string to not determine the version from git.
I've removed extractGitVersion
- to disable checking via git, create a file version.ini
- this can be done automatically at build time because there won't be .git
in a Docker container neither.
It would be great if you could also explain how to turn it on? It needs some special directory mode, but I was unable to set it properly. I would love to use this feature, but I was not able to enable it, and it has a serious side effect if it not working properly: it puts lots of error messages into the server's error.log.
If local file version.ini
exists (even if empty) then the version comes from this file instead of trying to execute git.
I got it but that suppress (or froze) the git version. I want the opposite: to read the actual git version.
If the git directory is not set properly (and I do not know how to set it properly), the apache error log is full with suggestions how to use git (see below), which makes error detection difficult. So I initialize a flag that could be used as a trigger to turn on and off this feature.