Ghost/index.js
Harry Wolff b920662790 Create the config module, initially used
to standardise getting paths and absolute URLs.  Easy
to extend for other configurations we may need.
2013-11-25 16:35:16 -05:00

13 lines
412 B
JavaScript

// # Ghost bootloader
// Orchestrates the loading of Ghost
// When run from command line.
var configLoader = require('./core/server/config/loader'),
errors = require('./core/server/errorHandling');
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
configLoader().then(function () {
var ghost = require('./core/server');
ghost();
}).otherwise(errors.logAndThrowError);