Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

production spring profile #15

Open
abrandao-predictiveiq opened this issue Sep 19, 2023 · 0 comments
Open

production spring profile #15

abrandao-predictiveiq opened this issue Sep 19, 2023 · 0 comments

Comments

@abrandao-predictiveiq
Copy link

Hello!

I am using a run configuration in Eclipse to package a prod version of my microservice created using the microservice archetype. These are the steps I took:

  1. Created Maven profiles with the <spring.profiles.active>prod</spring.profiles.active> property
  2. Create a Maven run configuration passing the spring.profiles.active parameter as prod
  3. Set spring.profiles.active=@spring.profiles.active@ in application.properties

But doing only this, the build was complaining about the application name, which seemed to be missing. Then I included the following parameters in application-prod.properties:

application.name
application.key
C8Y.bootstrap.tenant
C8Y.baseURL
C8Y.microservice.isolation

This way it worked and my question is: Is this a proper way of configuring the profiles?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant