Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 883 Bytes

environment_variables.md

File metadata and controls

25 lines (18 loc) · 883 Bytes

Configuration

Via Environment Variables

Configuration with environment variables is very simple. All variable names should be in the format GHOST_<capitalized config option>. For example: GHOST_VERBOSE.

We automatically (attempt to) parse arguments to integers, floats, and booleans (in that order.) For boolean values, you can use any of y, yes, t, true to represent true. You can use n, no, f, false to represent false. If we are unable to convert the value to any of those types, we the value is kept as a string.

Example

GHOST_VERBOSE=y \
GHOST_HOST=localhost \
GHOST_NICE_RATIO=0.71 \
GHOST_PORT=1599 \
ruby <your command>

Other Configuration Methods