You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I think it would be great, if we set very local setting files to become "branch save",
in a way, that merging branches didn't overwrite this settings.
I think the most obviously are the files devel.py and local.py inside Praktomat/src/settings/
To retain our current version of a file during a merge (a merge is always incoming, remember: we merge into the current branch), we need to make use of an oft-ignored Git feature: Git attributes.
[...]
What we’re interested in here is the merge attribute, that lets us map files to a [very simple shell based]merge driver, a command responsible for the actual merging of these files. git config --global merge.ours.driver true (Quoted fromhttps://medium.com/@porteneuve/how-to-make-git-preserve-specific-files-while-merging-18c92343826b)
Now here is my example for a possible .gitattributes file at the root level of repo,
that would tell very local-specific files to use above merge-driver instead of the standard one:
When deploying praktomat via git changes to the file
/src/settings/local.py might cause merge conflicts.
A possible solution to this is to configure
the settings file in the apache config. For instance
```
SetEnv DJANGO_SETTINGS_MODULE settings.local
```
See also KITPraktomatTeam#259
When deploying praktomat via git changes to the file
/src/settings/local.py might cause merge conflicts.
A possible solution to this is to configure
the settings file in the apache config. For instance
```
SetEnv DJANGO_SETTINGS_MODULE settings.local
```
See also KITPraktomatTeam#259
Hi there,
I think it would be great, if we set very local setting files to become "branch save",
in a way, that merging branches didn't overwrite this settings.
I think the most obviously are the files
devel.py
andlocal.py
insidePraktomat/src/settings/
Now here is my example for a possible .gitattributes file at the root level of repo,
that would tell very local-specific files to use above merge-driver instead of the standard one:
But this also means that example files for them should be given, like there is a
apache_praktomat_wsgi.conf
inPraktomat/documentation
.Best regards,
Robert
The text was updated successfully, but these errors were encountered: