2013-09-06 19:54:50 +04:00
|
|
|
// # Ghost bootloader
|
|
|
|
// Orchestrates the loading of Ghost
|
2013-11-20 06:43:55 +04:00
|
|
|
// When run from command line.
|
2013-09-06 19:54:50 +04:00
|
|
|
|
2014-02-20 07:22:02 +04:00
|
|
|
var ghost = require('./core'),
|
2014-05-09 14:11:29 +04:00
|
|
|
errors = require('./core/server/errors');
|
2013-08-06 23:27:56 +04:00
|
|
|
|
2014-08-19 20:36:46 +04:00
|
|
|
ghost().then(function (app) {
|
|
|
|
app.start();
|
|
|
|
}).catch(function (err) {
|
2014-02-20 07:22:02 +04:00
|
|
|
errors.logErrorAndExit(err, err.context, err.help);
|
2014-08-19 20:36:46 +04:00
|
|
|
});
|