Ghost/core/server
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
..
api Replace cookieSession with session 2013-11-24 15:29:36 +01:00
config Accept a config filename as an optional parameter to Ghost start-up. 2013-11-28 13:47:00 +00:00
controllers Fix several redirects in frontend and admin 2013-11-27 09:57:44 +00:00
data Fix failing migration.reset for Postgres. 2013-11-26 23:10:31 +00:00
helpers Merge pull request #1577 from halfdan/527-subdir-admin 2013-11-28 05:14:23 -08:00
middleware Merge pull request #1577 from halfdan/527-subdir-admin 2013-11-28 05:14:23 -08:00
models Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
permissions Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00
plugins Create the config module, initially used 2013-11-25 16:35:16 -05:00
routes Remove cookie from Frontend 2013-11-26 10:38:54 +01:00
storage image upload controller refactor 2013-11-11 16:10:57 +00:00
views Subdir support for admin interface 2013-11-27 09:57:38 +00:00
bookshelf-session.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
errorHandling.js Fix wrong error message 2013-11-15 15:27:06 +01:00
index.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
mail.js Create the config module, initially used 2013-11-25 16:35:16 -05:00
require-tree.js Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00