Skip to content

create a profile for development

Motivation:

Since production environment variables will be different from the development variables, hence we create a new development profile to set up the necessary configuration for the development.

Modification:

  • create a new dev profile yml file and add the configurations for development
  • add the dev profile to maven

Result:

The cerebrum dev server can now use the dev config.

Using maven, selecting a dev profile will be done as follow: mvn -Pdev clean ...

The profile can be set after the code is build as follow: java -Dspring.profiles.active=dev -jar ...

Target: master

Merge request reports

Loading