Ran into an issue at work today and I would like some opinions/help dealing with it.
so I have an application.properties file which basically contains
where the asterixis are you basically define which profile you would like to use ie dev, uat, pre-prod, prod.
So when devs are working on there local machine they use the
dev profile but sometimes forget to change this back when committing meaning that things point at the wrong place or use wrong logins etc... I originally thought I could just add application.properties to my
.gitignore file and the remote version would stay correct on github and then devs would just create a application.properties locally and specify which profile to use. Turns out this didn't work and git just will not ignore the file without removing the remote ones too.
So does anybody have any recommendations? Any help would be much appreciated