diff --git a/03-getting-started/03-configuration-and-env.adoc b/03-getting-started/03-configuration-and-env.adoc index 988f61f..260dcb3 100644 --- a/03-getting-started/03-configuration-and-env.adoc +++ b/03-getting-started/03-configuration-and-env.adoc @@ -51,6 +51,13 @@ Config.get('database.mysql.host') Config.get('database.mysql.host', '127.0.0.1') ---- +Also you can update the in-memory config value for a key as shown below. + +[source, js] +---- +Config.set('database.mysql.host', 'db.example.com') +---- + == Environment variables Quite often you want to have a different configuration based upon the environment your code is running in. For example: Using *sandbox secrets* for a 3rd party service in development.