Good evening! Hopefully I'm asking at the right place, I'm new to proper development and deployment and I'm tasked to do things I don't know yet how.
I'm making a Java EE program and deploying locally. At some point we'll be deploying on a couple more servers, staging and deployment (all Payara of course).
I want to have config files (Microprofile Config API rocks!!!) for each deployment server.
Is there a way to detect which server I'm deploying on so it automatically uses a specific config file? Perhaps with an environment variable on each server which says the name of the server and then choose the config file?
For example, with Spring Boot I know you can specify the properties file when you run "java jar...". Is there anything similar when deploying a .war file?
I don't know yet how we'll be deploying, maybe at first through the admin console and after a while with CI/CD.