jeudi 17 octobre 2019

Grails application.yml: how to have default values for environment variables

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