Feb 28, 2024

tips for soft launch properties file

In most of the projects, two sets of properties files will be maintained for production environment. One for soft launch and another for actual implementation.


While deploying, you might be using different approaches to migrate only *e1_sl* files during soft launch and actual files e1* during actual implementation.

Instead, you can maintain different folders like below.


You can use maven profiles to deploy the respective properties files during soft launch & actual implementation.



As you can see below, using "-P actual" adds the contents of resources folder to the artifact.

Using "-P sl" will add contents of the "resources_sl" folder to the artifact.


Hope this helps someone. Would love to see other ways of doing the same in the comments...

Ref:
https://stackoverflow.com/questions/1149352/using-maven-for-multiple-deployment-environment-production-development
https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html






No comments:

Post a Comment