# How to setup environment specific config?

Prefix the conf file with the environment name to define the env specific properties.

For example to define project level property specific to prod env:

  1. create a new conf file: prod.smile.conf

  2. define the property here, for example:

    mail.service.on=true
    
  3. no changes to the way the property is read.

Note:

  • The environment specific property over-writes the properties defined in smile.conf
  • The above is also applicable to module-level properties. For ex: prod.lotterydomain.conf file can hold the module level properties specific to prod environment.