Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
feat(config): add docs for Config.set (#227) (#228)
Browse files Browse the repository at this point in the history
* feat(config): add docs for Config.set (#227)

* feat(config): add docs for Config.set (#227)
  • Loading branch information
ntvsx193 authored and thetutlage committed Dec 13, 2017
1 parent 020463a commit 9b4f298
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 03-getting-started/03-configuration-and-env.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 9b4f298

Please sign in to comment.