Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 903 Bytes

14-override-default-configuration.md

File metadata and controls

27 lines (18 loc) · 903 Bytes

Overriding default configuration

Tired of pointing your facia.stage at CODE? Have you ever longed to change the content.api.host you use for development? Need to change some switches in DEV? Look no further!

How-to

  1. Create a file at ~/.gu/frontend.conf

  2. Add your configuration with the following syntax:

     devOverrides {
       key1.name=value1
       key2.name=value2
     }
    

    E.g.

     devOverrides {
       switches.key=DEV/config/switches-yournamehere.properties
       facia.stage=CODE
     }
    
  3. Restart the app you're working on

Notes

  • You can see all configuration keys by looking at the GuardianConfiguration class
  • Downloading the default configuration from s3 is not recommended as it contains secrets that you shouldn't keep locally