Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Elliot Shank edited this page Apr 12, 2017 · 8 revisions

figrc

Location

Fig's configuration is done via a series of JSON files that are each expected to contain a single object/dictionary. When Fig wants a value for a particular name, it searches the list and stops at the first value it finds. Note that it is possible to specify null as a value and that will override any value in a lower-priority file.

At present, there are three files that Fig looks at. They are, in order from highest to lowest priority, the value of the --figrc option, ~/.figrc, and in _meta/figrc in the repository, i.e. $FIG_REMOTE_URL/_meta/figrc. You can suppress use of ~/.figrc via the --no-figrc command-line option and the use of $FIG_REMOTE_URL/_meta/figrc via the --no-remote-figrc option.

Configuration values

"default FIG_REMOTE_URL"

A URL for a remote repository to use when the FIG_REMOTE_URL environment variable is not set. Unsurprisingly, specifying a value for this in $FIG_REMOTE_URL/_meta/figrc is pointless, but it can be useful in ~/.figrc.

"environment variables to include in comments in published packages"

An array of names of environment variables to include in comments at the top of published packages.

"log configuration"

A path to a Log4r configuration file (YAML or XML). Overridable via the --log-config command-line option.

"suppress warnings"

An array of named warnings to turn off. Values currently looked for are "include statement missing version" and "unused retrieve". Thus, to avoid specifying the --suppress-warning-include-statement-missing-version command-line option all the time, you could have the following in ~/.figrc:

{
    "suppress warnings": ["include statement missing version"]
}

"url whitelist"

A string or array of strings of base URLs to allow in asset statements.

{
    "url whitelist": ["http://host1/whatever", "ftp://yadda/"]
}
Clone this wiki locally