Ghost/core/server/config
rektide 42dc8b4a8f Accept a config filename as an optional parameter to Ghost start-up.
Closes #1110.
- Promotes config-loader from a validator, to the central place where configuration state is held
- Allow config-loader two means to be told of config file to be used:
  - A preferred first argument passed into Ghost
  - A secondary GHOST_CONFIG environmental variable
- Failing to see either of the above passed in, config-loader will continue to use "config.js"
- Config-loader validates the target configuration (unchanged) & then copies that object into it's own exports
- Components needing to read configuration now require config-loader to retrieve the configuration state
- Config file continues to be loaded via require(): this is assumed to be a static json file
2013-11-28 13:47:00 +00:00
..
index.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
loader.js Accept a config filename as an optional parameter to Ghost start-up. 2013-11-28 13:47:00 +00:00
paths.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00