Skip to content

Commit

Permalink
doc updates for v0.13.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Jun 6, 2016
1 parent ccd33ba commit efd7038
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
29 changes: 22 additions & 7 deletions manual/appconf.md
Expand Up @@ -117,18 +117,33 @@ The developer may define custom keys and access them via the
Example `app.conf` entries:
{% highlight ini %}
myapp.remote = 120.2.3.5
myapp.remote_enabled = true
myapp.remote.enabled = true
{% endhighlight %}

Example go usage:
Example Go usage:
{% highlight go %}
var remote_server string
if revel.Config.BoolDefault("myapp.remote_enabled", false) {
remote_server = revel.Config.StringDefault("myapp.remote", "0.0.0.0")
do_something_to( remote_server )
var remoteServer string
if revel.Config.BoolDefault("myapp.remote.enabled", false) {
remoteServer = revel.Config.StringDefault("myapp.remote", "0.0.0.0")
DoSomethingTo( remoteServer )
}
{% endhighlight %}


## External app.conf

Since v0.13.0 revel supported loading a external `app.conf` from given directory.
It's a convenient way to override or add config values to the application.
Please make sure file `app.conf` is in given path.

Example Go usage:
{% highlight go %}
func init() {
revel.ConfPaths = []string{"/etc/myapp/conf"}
}
{% endhighlight %}


<a name="BuiltinProperties"></a>

## Built-in properties
Expand Down Expand Up @@ -653,5 +668,5 @@ example:


<hr>
- See the godocs for [`Config`](https://godoc.org/github.com/revel/revel#MergedConfig)
- See the godocs for [`Config`](https://godoc.org/github.com/revel/config)
- Issues tagged with [config](https://github.com/revel/revel/labels/topic-config)
3 changes: 3 additions & 0 deletions manual/testing.md
Expand Up @@ -229,3 +229,6 @@ The testing framework could use the following improvements:

* Fixtures for populating a datastore with test data.
* Loggers that write to a file (instead of stderr / stdout) should also be redirected to `test-results/app.log`

<hr>
- See the godocs for [`Testing`](https://godoc.org/github.com/revel/revel/testing)

0 comments on commit efd7038

Please sign in to comment.