When an environment variable is not available in your environment, you might want to have a default value in your configuration without defining it in your application.groovy.
Default values for environment variables is actually supported for the application.yml, this is the syntax:
environments:
test:
testValue: ${MY_ENV:test}
Aucun commentaire:
Enregistrer un commentaire